I discovered a bug in the NetworkX function read_multiline_adjlist().
Comment-lines between the line that introduces a new source
node and the lines for each of the neighboring nodes are not ignored.
For example if the following file is given as input :
# New source node
1 2
# Neighbors list
2 1
3 1
I get the error
TypeError: Failed to convert node (#) to type <type 'int'>
If I remove the line
# Neighbors list
Then it works fine.
Regards,
Niky Riga
Fixed in SVN rev 1345.
Report back if you encounter other problems.
Thanks,
Chris