Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf!: Fix Subgraph O(n) complexity (#157)
Replaced the `Subgraph = FilteredGraph` alias with a concrete definition that avoids traversing the whole graph to filter nodes all the time. Now `Subgraph::iter_nodes` is `O(nodes in subgraph)` instead of `O(n)`. Closes #155. BREAKING CHANGE: `Subgraph` is no longer an alias for `FilteredGraph` --------- Co-authored-by: Douglas Wilson <[email protected]>
- Loading branch information