nernst
unread,Jul 9, 2009, 12:37:07 PM7/9/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pygraphviz-discuss
I'm just starting with pygraphviz, but it looks like if I add a node:
G.add_node('hi')
the method doesn't return a reference to the new node. If I want to
manipulate it, I need to do
n = G.get_node('hi')
which I can then manipulate to alter attributes, etc. I realize this
is possible if I pass the attribute in to the args to add_node, but
this seems less readable.
Is it possible to return the reference in the add_node method?