How to print a graph with LightGraphs

I have a graph which is of type Dict{Int64, Vector{Tuple{Int64, Float64}}}.

The first three lines of graph are:

5 => [(11, 34.54), (7, 3.33), (45, 1382.97)]
56 => [(61, 11.06), (57, 0.02), (76, 197.03)]
35 => [(50, 78.81), (41, 2.09), (52, 17.57)]

I am trying to use LightGraphs.jl and GraphPlot.jl to plot the graph. But gplot(graph) does not work. Any help?

Note that LightGraphs is archived as of last year, development has moved to Graphs:

1 Like