# \#graphio

**URL:** https://discourse.julialang.org/tag/graphio/812.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Load graphml with LightGraphs](https://discourse.julialang.org/t/load-graphml-with-lightgraphs/110590)

<div class="topic-metadata">

**Author:** [@Andromeda258](https://discourse.julialang.org/u/Andromeda258)\
**Replies:** 4\
**Last updated:** [February 25, 2024, 6:15am UTC](https://discourse.julialang.org/t/load-graphml-with-lightgraphs/110590 "2024-02-25T06:15:02Z")

</div>

I want to load a graphml graph as LightGraphs SimpleGraphs. This is the code I am using: \` using LightGraphs using GraphIO g = loadgraph(“graph.graphml”, GraphMLFormat()) ’ But I got this error: · ERROR: UndefVar…

---

## [How to read a graph from a GML file](https://discourse.julialang.org/t/how-to-read-a-graph-from-a-gml-file/68539)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 1\
**Last updated:** [September 22, 2021, 6:03am UTC](https://discourse.julialang.org/t/how-to-read-a-graph-from-a-gml-file/68539 "2021-09-22T06:03:38Z")

</div>

I cannot figure out how to get a graph definition from a GML file. I downloaded the following file https://github.com/empet/Datasets/blob/master/gstrang\_descendants.gml and tried with the following code: using Ligh…
