#15669: Errors with graph complement
-------------------------------------+-------------------------------------
Reporter: tscrim | Owner: tscrim
Type: defect | Status: needs_review
Priority: major | Milestone: sage-6.1
Component: graph theory | Resolution:
Keywords: | Merged in:
Authors: Travis Scrimshaw | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
public/graphs/complement-15699 | e2a498c3c7adc71adcadd76b0bc09ea9a6efe77c
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by tscrim):
Replying to [comment:3 ncohen]:
> Destroys the name of the graph ? Why ? Well if it does I guess it's a
bug, isn't it ? `O_o`
I agree that it is a bug:
{{{
sage: G = graphs.PathGraph(5)
sage: G
Path Graph: Graph on 5 vertices
sage: G.copy()
Path Graph: Graph on 5 vertices
sage: G.copy(immutable=True)
Graph on 5 vertices
}}}
> Besides : shouldn't the complement of an immutable graph be immutable ?
What's the "canonical" way to check if a graph `G` is immutable?
`hasattr(G, '_immutable') and G._immutable`?
> There are so many functions that will react oddly to immutable
graphs....
We'll just keep fixing them as we come across them I guess.
Best,[[BR]]
Travis
--
Ticket URL: <http://trac.sagemath.org/ticket/15669#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.