File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 629629
630630# Get the path that moves the gauge from a to b on a tree
631631# TODO : Move to NamedGraphs
632- function gauge_path (g:: AbstractGraph , region_a:: Vector , region_b:: Vector )
632+ function edge_sequence_between_regions (g:: AbstractGraph , region_a:: Vector , region_b:: Vector )
633633 issetequal (region_a, region_b) && return edgetype (g)[]
634634 st = steiner_tree (g, union (region_a, region_b))
635635 path = post_order_dfs_edges (st, first (region_b))
@@ -646,10 +646,8 @@ function tree_gauge(
646646 new_region:: Vector ;
647647 kwargs... ,
648648)
649- path = gauge_path (ψ, cur_region, new_region)
650- if ! isempty (path)
651- ψ = gauge_walk (alg, ψ, path; kwargs... )
652- end
649+ es = edge_sequence_between_regions (ψ, cur_region, new_region)
650+ ψ = gauge_walk (alg, ψ, es; kwargs... )
653651 return ψ
654652end
655653
You can’t perform that action at this time.
0 commit comments