Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-q committed Feb 5, 2024
1 parent fb26620 commit 8073d03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/algorithm/iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ impl<X> VisitOrder<X> {
}

/// Return an iterator over root and the immediate children of root.
/// [Preorder](root) will be the first result of the iterator and
/// [PostOrder](root) will be the last. No other [Preorder] nodes will be
/// `VisitOrder::PreOrder(root)` will be the first result of the iterator and
/// `VisitOrder::PostOrder(root)` will be the last. No other [VisitOrder::PreOrder] nodes will be
/// present. Children will be visited before any of their out_neighbours when
/// the graph is acyclic. Otherwise they will be visited in a Dfs order starting
/// from the first child(as returned by hugr.children()).
Expand Down Expand Up @@ -110,7 +110,7 @@ impl<'a> RecurseIterator<'a> {
/// `[Preorder](node)` items will be returned for nodes with children, before
/// any of those children. `[PostOrder](node)` items will be returned for all
/// nodes, after any children of that node. Nodes will be visited before any of
/// their `out_neighbours` when their [SiblingSubgraph] is acyclic. Otherwise
/// their `out_neighbours` when their [SiblingGraph] is acyclic. Otherwise
/// they will be visited in a Dfs order starting from the first child of the
/// parent(as returned by hugr.children()).
pub fn recursive_children(
Expand All @@ -121,7 +121,7 @@ pub fn recursive_children(
}

/// Return an iterator over root and transitive children of root. Nodes will be
/// visited before any of their `out_neighbours` when their [SiblingSubgraph]
/// visited before any of their `out_neighbours` when their [SiblingGraph]
/// is acyclic. Otherwise they will be visited in a Dfs order starting from the
/// first child of the parent(as returned by hugr.children()).
pub fn recursive_children_postorder(
Expand Down

0 comments on commit 8073d03

Please sign in to comment.