#20499: Graphs: docstring of _add_ conflicts with function
--------------------------------+--------------------------
Reporter: jmantysalo | Owner:
Type: defect | Status: needs_info
Priority: major | Milestone: sage-7.2
Component: graph theory | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
--------------------------------+--------------------------
Comment (by jmantysalo):
It seems that example given uses consecutive integeres. But yes, your
suggestions sounds reasonable. But now I see this:
{{{
sage: G = Graph({'a': ['b']})
sage: G
Graph on 2 vertices
sage: G+G
disjoint_union : Graph on 4 vertices
sage: H = graphs.CycleGraph(3)
sage: H
Cycle graph: Graph on 3 vertices
sage: H+H
Cycle graph disjoint_union Cycle graph: Graph on 6 vertices
}}}
Maybe the `__str__` needs modification also.
--
Ticket URL: <http://trac.sagemath.org/ticket/20499#comment:3>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.