Skip to content

Commit 35eea7e

Browse files
committed
Hotfix: DocTest now passes
1 parent 62f26f9 commit 35eea7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rustworkx-core/src/connectivity/cycle_basis.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ where
141141
/// # Example
142142
/// ```rust
143143
/// use petgraph::prelude::*;
144-
/// use rustworkx_core::connectivity::cycle_basis;
144+
/// use rustworkx_core::connectivity::cycle_basis_edges;
145145
///
146146
/// let edge_list = [(0, 1), (0, 3), (0, 5), (1, 2), (2, 3), (3, 4), (4, 5)];
147147
/// let graph = UnGraph::<i32, i32>::from_edges(&edge_list);
148-
/// let mut res: Vec<Vec<(NodeId, NodeId)>> = cycle_basis_edges(&graph, Some(NodeIndex::new(0)));
148+
/// let mut res: Vec<Vec<(NodeIndex, NodeIndex)>> = cycle_basis_edges(&graph, Some(NodeIndex::new(0)));
149149
/// ```
150150
pub fn cycle_basis_edges<G>(graph: G, root: Option<G::NodeId>) -> Vec<Vec<(G::NodeId, G::NodeId)>>
151151
where

0 commit comments

Comments
 (0)