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]

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[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]

[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]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

[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]

[src]

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

[src]

Convert a to an integer index.

[src]

Convert i to a node index

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

The kind edges in the graph.

[src]

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

The associated map type

[src]

Create a new visitor map

[src]

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