#15895: Bug in Graph.subdivide_edge
----------------------------+---------------------------------
Reporter: ncohen | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.2
Component: graph theory | Keywords:
Merged in: | Authors: Nathann Cohen
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
----------------------------+---------------------------------
As reported by Georgi Guninski:
{{{
sage: F=graphs.PathGraph(3);
sage: S='S';F.add_vertex(S);
sage: F.add_edges([(S,0)]);
sage: F2=Graph(F);
sage: F2.subdivide_edges(list(F2.edges(labels=False)),2);
sage: F2.degree()
[2, 2, 1, 0, 2, 0, 2, 0, 2, 5]
}}}
after relabel:
{{{
sage: F=graphs.PathGraph(3);
sage: S='S';
sage: F.add_vertex(S);
sage: F.add_edges([(S,0)]);
sage: F2=Graph(F);
sage: F2.relabel();
sage: F2.subdivide_edges(list(F2.edges(labels=False)),2);
sage: F2.degree()
[2, 2, 1, 1, 2, 2, 2, 2, 2, 2]
}}}
This bug, as very often, happened because I am an idiot.
Nathann
--
Ticket URL: <http://trac.sagemath.org/ticket/15895>
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.