doing
julia> using EzXML, Graphs, GraphIO
julia> loadgraph("tailorS1.graphml", "G" ,GraphIO.GraphMLFormat())
{39, 158} undirected simple Int64 graph
works also for me
Status `~/code/julia/graphmlread/Project.toml`
[8f5d6c58] EzXML v1.1.0
[aa1b3936] GraphIO v0.6.0
[86223c79] Graphs v1.7.4
ahmad88
December 5, 2022, 2:23pm
22
Thank you so much the problem was with the version of the Graphs package, with this it works in proper way
using Graphs
using GraphIO
using EzXML
loadgraph("tailorS1.graphml", "G" , GraphIO.GraphML.GraphMLFormat())
with these versions
"Graphs" => v"1.7.4"
"EzXML" => v"1.1.0"
"GraphIO" => v"0.6.0"
ahmad88
December 7, 2022, 11:25am
24
Thank you guys for your help, I have another question please, after having the graph if I want to get list containing the nodes of the graph and another list containing the edges as pairs for example a small graph of 5 nodes should be something like this
nodes =[1,2,3,4,5]
edges=[(1,2),(1,3),(1,4),(2,4),(3,4),(3,5),(4,5)]
what is the possible functions to do so