# Convert directed MetaGraphs object to networkX?

**URL:** <https://discourse.julialang.org/t/convert-directed-metagraphs-object-to-networkx/97358>\
**Category:** Data\
**Tags:** question\
**Created:** [April 11, 2023, 5:44pm UTC](https://discourse.julialang.org/t/convert-directed-metagraphs-object-to-networkx/97358 "2023-04-11T17:44:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkarikom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkarikom/32/7096_2.png) [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Post date:** [April 11, 2023, 5:44pm UTC](https://discourse.julialang.org/t/convert-directed-metagraphs-object-to-networkx/97358/1 "2023-04-11T17:44:40Z")

</div>

I’m trying to export a bunch of edge/node annotations to NetworkX so I can use PyVis.  
Has anyone tried this?

---

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [April 16, 2023, 6:04pm UTC](https://discourse.julialang.org/t/convert-directed-metagraphs-object-to-networkx/97358/2 "2023-04-16T18:04:37Z")

</div>

Hi @mkarikom, MetaGraphsNext maintainer here! It sounds like a useful functionality. I think the easiest solutions would be:

- store the graph as a file and then read it with networkx \implies not sure there exist compatible formats
- use PythonCall / JuliaCall to convert the object directly

Could you open an issue on the [MetaGraphsNext repo](https://github.com/JuliaGraphs/MetaGraphsNext.jl) so we keep track of this need?
