Struct petgraph::visit::NodeFiltered[][src]

pub struct NodeFiltered<G, F>(pub G, pub F);

A node-filtering graph adaptor.

Methods

impl<F, G> NodeFiltered<G, F> where
    G: GraphBase,
    F: Fn(G::NodeId) -> bool
[src]

Create an NodeFiltered adaptor from the closure filter.

Trait Implementations

impl<G: Copy, F: Copy> Copy for NodeFiltered<G, F>
[src]

impl<G: Clone, F: Clone> Clone for NodeFiltered<G, F>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<G: Debug, F: Debug> Debug for NodeFiltered<G, F>
[src]

Formats the value using the given formatter. Read more

impl<G, F> GraphBase for NodeFiltered<G, F> where
    G: GraphBase
[src]

node identifier

edge identifier

impl<'a, G, F> IntoNeighbors for &'a NodeFiltered<G, F> where
    G: IntoNeighbors,
    F: FilterNode<G::NodeId>, 
[src]

Return an iterator of the neighbors of node a.

impl<'a, G, F> IntoNeighborsDirected for &'a NodeFiltered<G, F> where
    G: IntoNeighborsDirected,
    F: FilterNode<G::NodeId>, 
[src]

impl<'a, G, F> IntoNodeIdentifiers for &'a NodeFiltered<G, F> where
    G: IntoNodeIdentifiers,
    F: FilterNode<G::NodeId>, 
[src]

impl<'a, G, F> IntoNodeReferences for &'a NodeFiltered<G, F> where
    G: IntoNodeReferences,
    F: FilterNode<G::NodeId>, 
[src]

impl<'a, G, F> IntoEdgeReferences for &'a NodeFiltered<G, F> where
    G: IntoEdgeReferences,
    F: FilterNode<G::NodeId>, 
[src]

impl<'a, G, F> IntoEdges for &'a NodeFiltered<G, F> where
    G: IntoEdges,
    F: FilterNode<G::NodeId>, 
[src]

impl<G, F> DataMap for NodeFiltered<G, F> where
    G: DataMap,
    F: FilterNode<G::NodeId>, 
[src]

impl<G, F> Data for NodeFiltered<G, F> where
    G: Data
[src]

impl<G, F> NodeIndexable for NodeFiltered<G, F> where
    G: NodeIndexable
[src]

Return an upper bound of the node indices in the graph (suitable for the size of a bitmap). Read more

Convert a to an integer index.

Convert i to a node index

impl<G, F> GraphProp for NodeFiltered<G, F> where
    G: GraphProp
[src]

The kind edges in the graph.

impl<G, F> Visitable for NodeFiltered<G, F> where
    G: Visitable
[src]

The associated map type

Create a new visitor map

Reset the visitor map (and resize to new size of graph if needed)

Auto Trait Implementations

impl<G, F> Send for NodeFiltered<G, F> where
    F: Send,
    G: Send

impl<G, F> Sync for NodeFiltered<G, F> where
    F: Sync,
    G: Sync