Hello,
{{{
sage: G = Graph(loops=True)
sage: G.add_edge(0,0)
sage: G.edges()
[(0, 0, None)]
sage: list(G.edge_iterator(0))
[(0, 0, None)]
sage: G.edges_incident(0)
[]
}}}
The .edges_incident does not return loops because the method call
edge_boundary which avoid loops by definition (I really do not
understand why this function does not call edge_iterator instead).
Should I open a ticket or did I say something wrong?
Cheers
Vincent
PS: the way .edge_boundary is coded is *dirty*: it first creates a
list from an iterator and then iterate through the list freshly built!
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org