New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
py3: Simplicial complexes: fix is_isomorphic #27067
Comments
New commits:
|
Commit: |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:4
two failing doctests, see patchbot Maybe try to make them more robust ? |
comment:5
That test is fixed by #27027, one of the dependencies. Let's wait until it's merged and then try this again. |
comment:7
Okay, please try this again now (you probably have to rebase onto 8.7.beta2). |
comment:8
The code LGTM, but please add a doctest showing that the two possible simplicial complexes on a 1-element set (one consisting of just the empty set, and another that is the whole powerset) are not isomorphic -- this is a bit of an edge case for the implementation. |
comment:9
I'm not sure I understand. Every vertex in a simplicial set must be in a facet, or to put it another way, the vertices in a simplicial set are formed by taking the union of the facets. (I'm talking about how things are implemented in Sage.) So if you have a vertex, you can't have the empty simplicial set. I can add this:
and/or this:
|
comment:10
Does Sage really forbid ghost vertices? If so, then it's a non-issue, though it's a bad decision if you ask me. |
comment:11
And then the doc here:
is wrong, as it says nothing about ghost vertices being forbidden. |
comment:12
You're right that the documentation is out-dated. I'm curious about "ghost vertices". For example, why should the empty simplicial complex on vertices {1,2} be considered different from the empty simplicial complex on vertices {4,5,6,7}? |
comment:13
If you don't keep the ghost vertices around, then the link of a vertex of a simplicial complex may lose vertices. Somehow I doubt this is a good thing. Then again I haven't done much with simplicial complexes, so I don't know what is actually good in practice. |
comment:14
I don't know of any computational reason, in particular any reason within Sage, why it should matter if link(sigma) and the ambient simplicial complex should have the same or different vertex sets. |
comment:15
OK, then this should be reflected in the doc. |
comment:16
See #27211 for the documentation change. |
Reviewer: Darij Grinberg |
Changed keywords from none to simplicial complexes |
Changed branch from u/jhpalmieri/simplicial-complex-graphs to |
The method
is_isomorphic
for simplicial complexes doesn't work with Python 3 for several reasons. The method constructs graphs associated toself
andother
and then tests whether they are isomorphic, preserving edge labels.int
s, sort those, and then translate back if we need to.Depends on #26966
Depends on #27027
Component: python3
Keywords: simplicial complexes
Author: John Palmieri
Branch/Commit:
af9e661
Reviewer: Darij Grinberg
Issue created by migration from https://trac.sagemath.org/ticket/27067
The text was updated successfully, but these errors were encountered: