Open smldis opened 5 years ago
Is there a way to convert a weighted graph to a simple graph?
Is there a way to convert a weighted graph to a simple graph?
Not sure whether this is related to the original issue, but:
julia> using LightGraphs, SimpleWeightedGraphs
julia> g = Graph(10,20)
{10, 20} undirected simple Int64 graph
julia> s = SimpleWeightedGraph(g, 4.0)
{10, 20} undirected simple Int64 graph with Float64 weights
julia> h = Graph(adjacency_matrix(s))
{10, 20} undirected simple Int64 graph
julia> g == h
true
Also, this is probably a better issue for GraphPlot, not for SimplerWeightedGraphs.
It's related in the sense that, I can plot the unweighted graph and not the weighted one. So this is a quick work around.
Thank you.
Hello, is plotting supposed to work?