Coloring Graphs with Lightgraphs

Hi all,

i am writing a paper in college about optimization problems in Julia.
Regarding a network flow problem i would like to create a colored graph for visualization.
I managed to visualize the nodes and edges with the corresponding values using the Lightgraphs package but I am stucked at coloring the nodes. There are different stages in the network (production, further processing, logistics, market) and I would like to color each node depending on the stage of this node. Is there any possibility for doing so with Lightgraphs?
I found this topic(https://github.com/JuliaGraphs/LightGraphs.jl/issues/773 https://github.com/JuliaGraphs/LightGraphs.jl/pull/844) but no documentation on how to use this.

For any help I would be really grateful.

Best regards
Alex

If you’re using GraphPlot.jl, the option to color the nodes is nodefillc and nodestrokec (see GitHub - JuliaGraphs/GraphPlot.jl: Graph visualization for Julia. for more details).

If you’re not using GraphPlot, what are you using?

Yes, i am using GraphPlot.
This is much easier than I thought, thank you very much!!

topic can be closed.

1 Like