Skip to content
This repository was archived by the owner on Oct 21, 2021. It is now read-only.

Commit 09eee4a

Browse files
committed
Compatibility with v0.3
1 parent c3d7011 commit 09eee4a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/edmonds_karp.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ function residual_graph_sub!{V,E1,E2}(g::AbstractGraph{V,E1},r::AbstractGraph{V,
2828
visited[vertex_index(s,g)] = true
2929
for edge in out_edges(s,g)
3030
i = edge_index(edge); u = edge.source; v = edge.target
31-
edge = ExEdge(i, u, v, Dict{UTF8String,Any}("capacity" => capacity[i], "flow" => 0))
32-
rev_edge = ExEdge(i, v, u, Dict{UTF8String,Any}("capacity" => capacity[i], "flow" => capacity[i]))
31+
d1 = Dict{UTF8String,Any}(); d1["capacity"] = capacity[i]; d1["flow"] = 0
32+
d2 = Dict{UTF8String,Any}(); d2["capacity"] = capacity[i]; d2["flow"] = capacity[i]
33+
edge = ExEdge(i, u, v, d1)
34+
rev_edge = ExEdge(i, v, u, d2)
3335
add_edge!(r,edge)
3436
add_edge!(r,rev_edge)
3537
if !visited[vertex_index(v,g)]

0 commit comments

Comments
 (0)