Node type in graph

10 views
Skip to first unread message

azize

unread,
Feb 12, 2012, 3:47:42 PM2/12/12
to networkx-discuss
Hello Everybody
In Networkx, the nodes of graph must have the same
type ?
Thank you

Aric Hagberg

unread,
Feb 12, 2012, 8:14:33 PM2/12/12
to networkx...@googlegroups.com
On Sun, Feb 12, 2012 at 1:47 PM, azize <azeddin...@gmail.com> wrote:
> Hello Everybody
> In Networkx, the nodes of graph must have the same
> type ?

You can use whatever (hashable) Python object you want for a node,
e.g. strings, integers, file handles, ...
You might want to look at the tutorial:
http://networkx.lanl.gov/tutorial/index.html
Aric

Reply all
Reply to author
Forward
0 new messages