Skip to content

Commit 23f2759

Browse files
committed
Correction: get_edge_between checks target only
- Modified get_edge_between to only check target when equiv == false.
1 parent c6dea4e commit 23f2759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rustworkx-core/src/connectivity/cycle_basis.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ where
178178
if equiv {
179179
edge.source() == target && edge.target() == target
180180
} else {
181-
edge.source() == target || edge.target() == target
181+
edge.target() == target
182182
}
183183
})
184184
.map(|edge: G::EdgeRef| edge.id())

0 commit comments

Comments
 (0)