GraphIO.jl icon indicating copy to clipboard operation
GraphIO.jl copied to clipboard

EdgeList does not support undirected graphs

Open littlebenlittle opened this issue 3 years ago • 1 comments

Looking at issue 35, it appears the tacit convention is to take the graph type as an argument. However EdgeList only creates directed graphs as can be seen at line 39.

littlebenlittle avatar Aug 24 '22 20:08 littlebenlittle

I think the fact that this information is not written in the documentation is a serious problem, I started using this method and luckily I realized that the graph was wrongly read. The annoying thing is that the edges count is the same in the original and the re-read graph because of the way Graphs.jl stores the edges.

Maybe one could add an option to the Format specifier, so that an user can specify to read as a directed or indirected input graph

fabmazz avatar May 13 '24 18:05 fabmazz