Skip to content

Commit

Permalink
Move reindexing step.
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec committed Jan 2, 2024
1 parent dad11e2 commit 31be174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specification/hugr.md
Original file line number Diff line number Diff line change
Expand Up @@ -1261,11 +1261,11 @@ The new hugr is then derived as follows:
For each child $C$ of $P$ (in order), if $C \in S$, redirect the hierarchy edge $P \rightarrow C$ to
target the next node in $N$. Stop if there are no more nodes in $N$.
Add any remaining nodes in $N$ to the end of $P$'s list of children.
(Reindexing may be necessary after this step.)
6. For each node $(n, b = B(n))$ and for each child $m$ of $b$, replace the
hierarchy edge from $b$ to $m$ with a hierarchy edge from the new copy of
$n$ to $m$ (preserving the order).
7. Remove all nodes in $R$ and edges adjoining them.
7. Remove all nodes in $R$ and edges adjoining them. (Reindexing may be
necessary after this step.)
##### Outlining methods
Expand Down

0 comments on commit 31be174

Please sign in to comment.