Skip to content

Commit

Permalink
Merge branch 'move-basis-search-dijkstra' into move-basis-search
Browse files Browse the repository at this point in the history
  • Loading branch information
raynelfss committed Jul 21, 2024
2 parents 3096871 + 983ceaf commit e746de1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/circuit/src/equivalence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ impl ToPyObject for CircuitRep {
}

// Custom Types
type GraphType = StableDiGraph<NodeData, EdgeData>;
type GraphType = StableDiGraph<NodeData, Option<EdgeData>>;
type KTIType = HashMap<Key, NodeIndex>;

#[pyclass(
Expand Down Expand Up @@ -619,7 +619,7 @@ impl EquivalenceLibrary {
)
}));
for edge in edges {
self.graph.add_edge(edge.0, edge.1, edge.2);
self.graph.add_edge(edge.0, edge.1, Some(edge.2));
}
self.rule_id += 1;
self._graph = None;
Expand Down

0 comments on commit e746de1

Please sign in to comment.