Nathann Cohen wrote: > And what would you think about moving the current syntax for edges > (u,v,label) to (frozenset_of_two_elements,label) ?
You mean functions returning edges would return tuples that looked like: (frozen_or_sage_set_of_two_elements, label) ? I think we should look carefully at the new networkx api to see what they've done. Our current API is based on their old API, so it makes sense to at least be informed about what changes they've made and why. There have been lots of times that I had to deal with the issue of the Graph edge (1,2) being the same as the edge (2,1); it's one of those thorns that keeps being a bit annoying, so I'm happy to have a small change that would take care of it. Maybe, to be consistent, Digraph edges should be returned ([list of two vertices], label), then. Thanks, Jason --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
