Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement edge.to_tuple() #22

Open
akelleh opened this issue Jun 1, 2013 · 0 comments
Open

implement edge.to_tuple() #22

akelleh opened this issue Jun 1, 2013 · 0 comments

Comments

@akelleh
Copy link
Collaborator

akelleh commented Jun 1, 2013

Given an edge, we want access to the tuple (parent_node_name, child_node_name) so we can write the edgelist for the graph. the method of the Edge object called to_tuple() should return the tuple listed above, so that we could run , for example
edgelist = [edge.to_tuple() for edge in g.edges()]
for some Graph object g to get the edgelist in the standard format [(1,2),(2,3),...] for integer named edges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant