Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Subgraph #100

Merged
merged 11 commits into from
Aug 8, 2023
Merged
Prev Previous commit
Next Next commit
Update src/view/filter.rs
Co-authored-by: Agustín Borgna <[email protected]>
  • Loading branch information
lmondada and aborgna-q authored Aug 2, 2023
commit b6914941467d3aefeeb5acb2457f358005ccf1bb
2 changes: 1 addition & 1 deletion src/view/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub type NodeFilter<Ctx> = fn(NodeIndex, &Ctx) -> bool;
/// Port filter used by [`PortFiltered`].
pub type PortFilter<Ctx> = fn(PortIndex, &Ctx) -> bool;

/// A wrapper around a portgraph that filters out nodes.
/// A wrapper around a portgraph that filters out nodes and ports.
#[derive(Debug, Clone, PartialEq)]
pub struct PortFiltered<'a, G, FN, FP, Context = ()> {
graph: &'a G,
Expand Down