Skip to content

Commit

Permalink
Added comment about id_to_node and node_to_id.
Browse files Browse the repository at this point in the history
  • Loading branch information
zrho committed Jan 7, 2025
1 parent fb071c3 commit 4cc2572
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hugr-core/src/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ struct Context<'a> {

/// Mapping from node ids in the [`Hugr`] to the corresponding model nodes.
id_to_node: FxHashMap<model::NodeId, Node>,
// TODO: Once this module matures, we should consider adding an auxiliary structure
// that ensures that the `node_to_id` and `id_to_node` maps stay in sync.
}

impl<'a> Context<'a> {
Expand Down

0 comments on commit 4cc2572

Please sign in to comment.