Hello,

I am new on this mailing list, a casual sage user for several years who
would like to contribute to sage. My first message here is about a minor
issue.

I noticed that the neighbor_iterator method does not give a correct
error message when given a vertex that does not belong to the graph.

sage: g = Graph()
sage: list(g.neighbor_iterator(123))
LookupError: vertex (-1) is not a vertex of the graph

The issue is that '-1' is not the name of the vertex that I tried to
delete. Same behavior with g.vertices(123), which uses
neighbor_iterator. I did not find any mention of this behavior online.
Sage version: 8.5 2018-12-22.

I think I know how to fix it. Should I open a trac ticket?

Best regards,

Jean-Florent.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to