# Read graphml

**URL:** https://discourse.julialang.org/t/read-graphml/91085
**Category:** General Usage
**Created:** [December 1, 2022, 9:52am UTC](https://discourse.julialang.org/t/read-graphml/91085 "2022-12-01T09:52:02Z")
**Posts on this page:** 5
**Page:** 2

<div class="post-metadata">

### Author: ![filchristou](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/filchristou/32/26760_2.png) [@filchristou](https://discourse.julialang.org/u/filchristou)
#### Post date: [December 5, 2022, 1:47pm UTC](https://discourse.julialang.org/t/read-graphml/91085/21 "2022-12-05T13:47:12Z")

</div>

doing

```julia
julia> using EzXML, Graphs, GraphIO

julia> loadgraph("tailorS1.graphml", "G" ,GraphIO.GraphMLFormat())
{39, 158} undirected simple Int64 graph

```

works also for me

```julia
Status `~/code/julia/graphmlread/Project.toml`
  [8f5d6c58] EzXML v1.1.0
  [aa1b3936] GraphIO v0.6.0
  [86223c79] Graphs v1.7.4

```

---

<div class="post-metadata">

### Author: ![ahmad88](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmad88/32/32437_2.png) [@ahmad88](https://discourse.julialang.org/u/ahmad88)
#### Post date: [December 5, 2022, 2:23pm UTC](https://discourse.julialang.org/t/read-graphml/91085/22 "2022-12-05T14:23:56Z")

</div>

Thank you so much the problem was with the version of the Graphs package, with this it works in proper way

```julia
using Graphs
using GraphIO
using EzXML
loadgraph("tailorS1.graphml", "G" , GraphIO.GraphML.GraphMLFormat())

```

with these versions

```julia

  "Graphs" => v"1.7.4"
  "EzXML" => v"1.1.0"
  "GraphIO" => v"0.6.0"

```

---

<div class="post-metadata">

### Author: ![empet](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/empet/32/221303_2.png) [@empet](https://discourse.julialang.org/u/empet)
#### Post date: [December 5, 2022, 2:56pm UTC](https://discourse.julialang.org/t/read-graphml/91085/23 "2022-12-05T14:56:05Z")

</div>

😀 😀 😀

---

<div class="post-metadata">

### Author: ![ahmad88](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ahmad88/32/32437_2.png) [@ahmad88](https://discourse.julialang.org/u/ahmad88)
#### Post date: [December 7, 2022, 11:25am UTC](https://discourse.julialang.org/t/read-graphml/91085/24 "2022-12-07T11:25:19Z")

</div>

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

```julia
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

---

<div class="post-metadata">

### Author: ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)
#### Post date: [December 7, 2022, 2:21pm UTC](https://discourse.julialang.org/t/read-graphml/91085/25 "2022-12-07T14:21:35Z")

</div>

[https://juliagraphs.org/Graphs.jl/dev/first\_steps/access/](https://juliagraphs.org/Graphs.jl/dev/first_steps/access/)

[Previous page](https://discourse.julialang.org/t/read-graphml/91085.md?page=1)
