# Coordinates for nodes in LightGraphs.jl

**URL:** <https://discourse.julialang.org/t/coordinates-for-nodes-in-lightgraphs-jl/1868>\
**Category:** Visualization\
**Tags:** plotting\
**Created:** [February 3, 2017, 2:59pm UTC](https://discourse.julialang.org/t/coordinates-for-nodes-in-lightgraphs-jl/1868 "2017-02-03T14:59:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![varun7rs](https://avatars.discourse-cdn.com/v4/letter/v/c2a13f/32.png) [@varun7rs](https://discourse.julialang.org/u/varun7rs)\
**Post date:** [February 3, 2017, 2:59pm UTC](https://discourse.julialang.org/t/coordinates-for-nodes-in-lightgraphs-jl/1868/1 "2017-02-03T14:59:10Z")

</div>

I am reading in an XML file to create a graph using LightGraphs package. I later intend to save the graph using TikzGraphs package. I would however want to know if there is a possibility to include additional node attributes in the graph. I’m mainly interested in naming the nodes and assigning them their coordinates. But, I’m not sure if LightGraphs enables us to add more attributes to the nodes. Could you please let me know how to use the coordinate values of the nodes to construct a graph?

---

<div class="post-metadata">

**Author:** ![tbreloff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbreloff/32/68_2.png) [@tbreloff](https://discourse.julialang.org/u/tbreloff)\
**Post date:** [February 3, 2017, 3:30pm UTC](https://discourse.julialang.org/t/coordinates-for-nodes-in-lightgraphs-jl/1868/2 "2017-02-03T15:30:59Z")

</div>

You might want to review [https://github.com/JuliaPlots/PlotRecipes.jl](https://github.com/JuliaPlots/PlotRecipes.jl), which (I think) has a recipe for LightGraphs.
