nx,read_gml error w/ GML examples on Topology Zoo

44 views
Skip to first unread message

ilter yüksel

unread,
Jan 14, 2024, 7:21:06 AMJan 14
to networkx...@googlegroups.com
Hi all,

I'm getting following error when I try to use nx.read_gml function w/ the following example in Topology Zoo datasets; topology-zoo.org/files/Abvt.gml

import networkx as nx
graph = nx.read_graphml("Abvt.gml")

xml.etree.ElementTree.ParseError: syntax error: line 1, column 0

Any idea why I'm getting this error?

Thanks,
--ilter

Dan Schult

unread,
Jan 14, 2024, 7:32:42 AMJan 14
to networkx...@googlegroups.com
The file is a GML file and you are reading it as a GraphML format.
Try `nx.read_gml`

ilter yüksel

unread,
Jan 14, 2024, 7:45:18 AMJan 14
to networkx...@googlegroups.com
Thanks Dan. 

On Sun, Jan 14, 2024 at 3:32 PM Dan Schult <dsc...@colgate.edu> wrote:
The file is a GML file and you are reading it as a GraphML format.
Try `nx.read_gml`

--
You received this message because you are subscribed to the Google Groups "networkx-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to networkx-discu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/networkx-discuss/CA%2BXMcTPfRwWZzyTd3PycyBePhDEXS4can1q0068so%3Ds9ka%2BW_Q%40mail.gmail.com.


--
--ilter
Reply all
Reply to author
Forward
0 new messages