From 618e298788ab8a8dfb4d8c70e7d5e696361d88e9 Mon Sep 17 00:00:00 2001 From: b-kloss Date: Tue, 16 Apr 2024 11:14:29 -0400 Subject: [PATCH] Update src/treetensornetworks/opsum_to_ttn.jl Co-authored-by: Matt Fishman --- src/treetensornetworks/opsum_to_ttn.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/treetensornetworks/opsum_to_ttn.jl b/src/treetensornetworks/opsum_to_ttn.jl index 7fd22851..a3923dd8 100644 --- a/src/treetensornetworks/opsum_to_ttn.jl +++ b/src/treetensornetworks/opsum_to_ttn.jl @@ -22,9 +22,9 @@ function align_and_reorder_edges(edges, reference_edges) end function split_at_vertex(g::AbstractGraph, v) - _g = copy(g) - rem_vertex!(_g, v) - return Set.(connected_components(_g)) + g = copy(g) + rem_vertex!(g, v) + return Set.(connected_components(g)) end #