SimpleWeightedGraphs.jl
SimpleWeightedGraphs.jl copied to clipboard
transitiveclosure not supported
trafficstars
if I need the transitive closure, how can I get that from a SimpleWeightedDiGraph?
Right now the best thing to do is to convert the SimpleWeightedDiGraph into a DiGraph and run transitiveclosure on that. It's not ideal but in 1.3.3 the transitiveclosure function only works on SimpleGraphs.
does the DiGraph(.) copy? I.e. can I use transitiveclosure! ?
DiGraph(::SimpleWeightedDiGraph) will copy. That's why it's not ideal. But for your case, it might be, since ... yes, transitiveclosure! would be ok to use if you had no other use for the DiGraph.