Maybe you have an old version of NetworkX? It works with networkx-1.4.
Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import networkx as nx
>>> G=nx.read_gml('karate.gml')
>>> len(G)
34
Aric
--
You received this message because you are subscribed to the Google Groups "networkx-discuss" group.
To post to this group, send email to networkx...@googlegroups.com.
To unsubscribe from this group, send email to networkx-discu...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/networkx-discuss?hl=en.
The latest NetworkX source is in the mercurial repository at
http://networkx.lanl.gov/hg/networkx
If you are using the SVN repository you have old code that might not
read the karate.gml file correctly.
Aric