Closed jpfairbanks closed 4 years ago
Let's bring it in.
julia> g = path_digraph(10)
{10, 9} directed simple Int64 graph
julia> merge_vertices(g, [4,5,6])
{8, 6} undirected simple Int64 graph
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
For HackIllinois: even though we have #1291, it'd be good to get benchmarks using the above code to compare against the PR.
@sbromberger we can probably close this too :)
I found this code in https://github.com/IBM/semanticflowgraph/blob/master/src/SemanticEnrichment.jl#L202 and figured it might want to come home to LG. Does anyone know if the merge_vertices in https://github.com/JuliaGraphs/LightGraphs.jl/blob/84c21997a5df176cfc142d2309c8e21189fff283/src/operators.jl#L746 works on directed graphs?