Struct petgraph::visit::EdgeFiltered [−][src]
pub struct EdgeFiltered<G, F>(pub G, pub F);
Expand description
An edge-filtering graph adaptor.
The adaptor may filter out edges. The filter implements the trait
FilterEdge
. Closures of type Fn(G::EdgeRef) -> bool
already
implement this trait.
The filter may use edge source, target, id, and weight to select whether to include the edge or not.
Tuple Fields
0: G
1: F
Implementations
Trait Implementations
type NodeWeight = G::NodeWeight
type EdgeWeight = G::EdgeWeight
Return an upper bound of the edge indices in the graph (suitable for the size of a bitmap). Read more
Convert i
to an edge index. i
must be a valid value in the graph.
impl<'a, G, F> IntoEdgeReferences for &'a EdgeFiltered<G, F> where
G: IntoEdgeReferences,
F: FilterEdge<G::EdgeRef>,
impl<'a, G, F> IntoEdgeReferences for &'a EdgeFiltered<G, F> where
G: IntoEdgeReferences,
F: FilterEdge<G::EdgeRef>,
type EdgeReferences = EdgeFilteredEdges<'a, G, G::EdgeReferences, F>
impl<'a, G, F> IntoEdges for &'a EdgeFiltered<G, F> where
G: IntoEdges,
F: FilterEdge<G::EdgeRef>,
impl<'a, G, F> IntoEdges for &'a EdgeFiltered<G, F> where
G: IntoEdges,
F: FilterEdge<G::EdgeRef>,
impl<'a, G, F> IntoEdgesDirected for &'a EdgeFiltered<G, F> where
G: IntoEdgesDirected,
F: FilterEdge<G::EdgeRef>,
impl<'a, G, F> IntoEdgesDirected for &'a EdgeFiltered<G, F> where
G: IntoEdgesDirected,
F: FilterEdge<G::EdgeRef>,
type EdgesDirected = EdgeFilteredEdges<'a, G, G::EdgesDirected, F>
impl<'a, G, F> IntoNeighbors for &'a EdgeFiltered<G, F> where
G: IntoEdges,
F: FilterEdge<G::EdgeRef>,
impl<'a, G, F> IntoNeighbors for &'a EdgeFiltered<G, F> where
G: IntoEdges,
F: FilterEdge<G::EdgeRef>,
impl<'a, G, F> IntoNeighborsDirected for &'a EdgeFiltered<G, F> where
G: IntoEdgesDirected,
F: FilterEdge<G::EdgeRef>,
impl<'a, G, F> IntoNeighborsDirected for &'a EdgeFiltered<G, F> where
G: IntoEdgesDirected,
F: FilterEdge<G::EdgeRef>,
type NeighborsDirected = EdgeFilteredNeighborsDirected<'a, G, F>
type NodeIdentifiers = G::NodeIdentifiers
type NodeReferences = G::NodeReferences
Return an upper bound of the node indices in the graph (suitable for the size of a bitmap). Read more
Convert i
to a node index. i
must be a valid value in the graph.
Auto Trait Implementations
impl<G, F> RefUnwindSafe for EdgeFiltered<G, F> where
F: RefUnwindSafe,
G: RefUnwindSafe,
impl<G, F> Send for EdgeFiltered<G, F> where
F: Send,
G: Send,
impl<G, F> Sync for EdgeFiltered<G, F> where
F: Sync,
G: Sync,
impl<G, F> Unpin for EdgeFiltered<G, F> where
F: Unpin,
G: Unpin,
impl<G, F> UnwindSafe for EdgeFiltered<G, F> where
F: UnwindSafe,
G: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more