Bug in read_multiline_adjlist()

15 views
Skip to first unread message

Niky Riga

unread,
Jul 21, 2009, 3:00:10 PM7/21/09
to networkx...@googlegroups.com
Hi,

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

Christopher Ellison

unread,
Jul 21, 2009, 3:57:54 PM7/21/09
to networkx...@googlegroups.com
Niky Riga wrote the following on 07/21/2009 12:00 PM:
> Hi,
>
> I discovered a bug in the NetworkX function read_multiline_adjlist().

Fixed in SVN rev 1345.

Report back if you encounter other problems.

Thanks,
Chris

Reply all
Reply to author
Forward
0 new messages