Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeyT1994 committed Jun 12, 2024
1 parent ed7befa commit 322dca4
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/solvers/sweep_plans/sweep_plans.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Graphs: AbstractEdge, dst, src, edges
using Graphs: AbstractEdge, dst, src
using NamedGraphs.GraphsExtensions: GraphsExtensions

direction(step_number) = isodd(step_number) ? Base.Forward : Base.Reverse
Expand Down Expand Up @@ -143,23 +143,6 @@ function default_sweep_plans(
return sweep_plans
end

function bp_sweep_plan(
g::AbstractGraph;
root_vertex=GraphsExtensions.default_root_vertex(graph),
region_kwargs,
nsites::Int,
es=vcat(collect(edges(g)), collect(reverse(edges(g)))),
vs=vcat(reverse(collect(vertices(g))), collect(vertices(g))),
)
region_kwargs = (; internal_kwargs=(;), region_kwargs...)

if nsites == 2
return collect(flatten(map(e -> [([src(e), dst(e)], region_kwargs)], es)))
elseif nsites == 1
return collect(flatten(map(v -> [([v], region_kwargs)], vs)))
end
end

function default_sweep_plan(
graph::AbstractGraph;
root_vertex=GraphsExtensions.default_root_vertex(graph),
Expand Down

0 comments on commit 322dca4

Please sign in to comment.