@@ -55,7 +55,7 @@ func pushRelabelGolden(g flowGraph) flowGraph {
55
55
return flowG
56
56
}
57
57
58
- func bioGraphMaxMatchSetup () (graph , []interface {}) {
58
+ func bipGraphMaxMatchSetup () (graph , []interface {}) {
59
59
g := newGraph ()
60
60
g .AddEdgeBi (edge {"l0" , "r0" })
61
61
g .AddEdgeBi (edge {"l1" , "r0" })
@@ -68,23 +68,23 @@ func bioGraphMaxMatchSetup() (graph, []interface{}) {
68
68
return g , []interface {}{"l0" , "l1" , "l2" , "l3" , "l4" }
69
69
}
70
70
71
- func bioGraphMaxMatchGoldenByEdmondesKarp () graph {
71
+ func bipGraphMaxMatchGoldenByEdmondesKarp () graph {
72
72
g := newGraph ()
73
73
g .AddEdgeBi (edge {"l0" , "r0" })
74
74
g .AddEdgeBi (edge {"l1" , "r2" })
75
75
g .AddEdgeBi (edge {"l2" , "r1" })
76
76
return g
77
77
}
78
78
79
- func bioGraphMaxMatchGoldenByPushRelabel () graph {
79
+ func bipGraphMaxMatchGoldenByPushRelabel () graph {
80
80
g := newGraph ()
81
81
g .AddEdgeBi (edge {"l1" , "r0" })
82
82
g .AddEdgeBi (edge {"l4" , "r2" })
83
83
g .AddEdgeBi (edge {"l2" , "r1" })
84
84
return g
85
85
}
86
86
87
- func bioGraphMaxMatchGoldenByRelabelToFront () graph {
87
+ func bipGraphMaxMatchGoldenByRelabelToFront () graph {
88
88
g := newGraph ()
89
89
g .AddEdgeBi (edge {"l0" , "r0" })
90
90
g .AddEdgeBi (edge {"l1" , "r2" })
@@ -129,17 +129,17 @@ func TestRelabelToFront(t *testing.T) {
129
129
checkFlowGraphOutOfOrder (t , g , gGolden )
130
130
}
131
131
132
- func TestBioGraphMaxMatch (t * testing.T ) {
133
- bioG , l := bioGraphMaxMatchSetup ()
134
- gGolden := bioGraphMaxMatchGoldenByEdmondesKarp ()
135
- g := bioGraphMaxMatch (bioG , l , edmondesKarp )
132
+ func TestBipGraphMaxMatch (t * testing.T ) {
133
+ bioG , l := bipGraphMaxMatchSetup ()
134
+ gGolden := bipGraphMaxMatchGoldenByEdmondesKarp ()
135
+ g := bipGraphMaxMatch (bioG , l , edmondesKarp )
136
136
checkGraphOutOfOrderInString (t , g , gGolden , nil )
137
137
138
- g = bioGraphMaxMatch (bioG , l , pushRelabel )
139
- gGolden = bioGraphMaxMatchGoldenByPushRelabel ()
138
+ g = bipGraphMaxMatch (bioG , l , pushRelabel )
139
+ gGolden = bipGraphMaxMatchGoldenByPushRelabel ()
140
140
checkGraphOutOfOrderInString (t , g , gGolden , nil )
141
141
142
- g = bioGraphMaxMatch (bioG , l , relabelToFront )
143
- gGolden = bioGraphMaxMatchGoldenByRelabelToFront ()
142
+ g = bipGraphMaxMatch (bioG , l , relabelToFront )
143
+ gGolden = bipGraphMaxMatchGoldenByRelabelToFront ()
144
144
checkGraphOutOfOrderInString (t , g , gGolden , nil )
145
145
}
0 commit comments