Struct petgraph::visit::NodeFiltered
source · pub struct NodeFiltered<G, F>(pub G, pub F);
Expand description
A node-filtering graph adaptor.
Tuple Fields§
§0: G
§1: F
Implementations§
Trait Implementations§
source§impl<G: Clone, F: Clone> Clone for NodeFiltered<G, F>
impl<G: Clone, F: Clone> Clone for NodeFiltered<G, F>
source§fn clone(&self) -> NodeFiltered<G, F>
fn clone(&self) -> NodeFiltered<G, F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<G, F> Data for NodeFiltered<G, F>where
G: Data,
impl<G, F> Data for NodeFiltered<G, F>where
G: Data,
type NodeWeight = <G as Data>::NodeWeight
type EdgeWeight = <G as Data>::EdgeWeight
source§impl<G, F> DataMap for NodeFiltered<G, F>where
G: DataMap,
F: FilterNode<G::NodeId>,
impl<G, F> DataMap for NodeFiltered<G, F>where
G: DataMap,
F: FilterNode<G::NodeId>,
fn node_weight(&self, id: Self::NodeId) -> Option<&Self::NodeWeight>
fn edge_weight(&self, id: Self::EdgeId) -> Option<&Self::EdgeWeight>
source§impl<G, F> EdgeIndexable for NodeFiltered<G, F>where
G: EdgeIndexable,
impl<G, F> EdgeIndexable for NodeFiltered<G, F>where
G: EdgeIndexable,
source§fn edge_bound(&self) -> usize
fn edge_bound(&self) -> usize
Return an upper bound of the edge indices in the graph
(suitable for the size of a bitmap). Read more
source§fn from_index(&self, i: usize) -> Self::EdgeId
fn from_index(&self, i: usize) -> Self::EdgeId
Convert
i
to an edge index. i
must be a valid value in the graph.source§impl<G, F> GraphBase for NodeFiltered<G, F>where
G: GraphBase,
impl<G, F> GraphBase for NodeFiltered<G, F>where
G: GraphBase,
source§impl<G, F> GraphProp for NodeFiltered<G, F>where
G: GraphProp,
impl<G, F> GraphProp for NodeFiltered<G, F>where
G: GraphProp,
source§impl<'a, G, F> IntoEdgeReferences for &'a NodeFiltered<G, F>where
G: IntoEdgeReferences,
F: FilterNode<G::NodeId>,
impl<'a, G, F> IntoEdgeReferences for &'a NodeFiltered<G, F>where
G: IntoEdgeReferences,
F: FilterNode<G::NodeId>,
type EdgeRef = <G as IntoEdgeReferences>::EdgeRef
type EdgeReferences = NodeFilteredEdgeReferences<'a, G, <G as IntoEdgeReferences>::EdgeReferences, F>
fn edge_references(self) -> Self::EdgeReferences
source§impl<'a, G, F> IntoEdges for &'a NodeFiltered<G, F>where
G: IntoEdges,
F: FilterNode<G::NodeId>,
impl<'a, G, F> IntoEdges for &'a NodeFiltered<G, F>where
G: IntoEdges,
F: FilterNode<G::NodeId>,
source§impl<'a, G, F> IntoEdgesDirected for &'a NodeFiltered<G, F>where
G: IntoEdgesDirected,
F: FilterNode<G::NodeId>,
impl<'a, G, F> IntoEdgesDirected for &'a NodeFiltered<G, F>where
G: IntoEdgesDirected,
F: FilterNode<G::NodeId>,
type EdgesDirected = NodeFilteredEdges<'a, G, <G as IntoEdgesDirected>::EdgesDirected, F>
fn edges_directed(self, a: G::NodeId, dir: Direction) -> Self::EdgesDirected
source§impl<'a, G, F> IntoNeighbors for &'a NodeFiltered<G, F>where
G: IntoNeighbors,
F: FilterNode<G::NodeId>,
impl<'a, G, F> IntoNeighbors for &'a NodeFiltered<G, F>where
G: IntoNeighbors,
F: FilterNode<G::NodeId>,
type Neighbors = NodeFilteredNeighbors<'a, <G as IntoNeighbors>::Neighbors, F>
source§impl<'a, G, F> IntoNeighborsDirected for &'a NodeFiltered<G, F>where
G: IntoNeighborsDirected,
F: FilterNode<G::NodeId>,
impl<'a, G, F> IntoNeighborsDirected for &'a NodeFiltered<G, F>where
G: IntoNeighborsDirected,
F: FilterNode<G::NodeId>,
type NeighborsDirected = NodeFilteredNeighbors<'a, <G as IntoNeighborsDirected>::NeighborsDirected, F>
fn neighbors_directed(
self,
n: G::NodeId,
dir: Direction
) -> Self::NeighborsDirected
source§impl<'a, G, F> IntoNodeIdentifiers for &'a NodeFiltered<G, F>where
G: IntoNodeIdentifiers,
F: FilterNode<G::NodeId>,
impl<'a, G, F> IntoNodeIdentifiers for &'a NodeFiltered<G, F>where
G: IntoNodeIdentifiers,
F: FilterNode<G::NodeId>,
type NodeIdentifiers = NodeFilteredNeighbors<'a, <G as IntoNodeIdentifiers>::NodeIdentifiers, F>
fn node_identifiers(self) -> Self::NodeIdentifiers
source§impl<'a, G, F> IntoNodeReferences for &'a NodeFiltered<G, F>where
G: IntoNodeReferences,
F: FilterNode<G::NodeId>,
impl<'a, G, F> IntoNodeReferences for &'a NodeFiltered<G, F>where
G: IntoNodeReferences,
F: FilterNode<G::NodeId>,
type NodeRef = <G as IntoNodeReferences>::NodeRef
type NodeReferences = NodeFilteredNodes<'a, <G as IntoNodeReferences>::NodeReferences, F>
fn node_references(self) -> Self::NodeReferences
source§impl<G, F> NodeIndexable for NodeFiltered<G, F>where
G: NodeIndexable,
impl<G, F> NodeIndexable for NodeFiltered<G, F>where
G: NodeIndexable,
source§fn node_bound(&self) -> usize
fn node_bound(&self) -> usize
Return an upper bound of the node indices in the graph
(suitable for the size of a bitmap). Read more
source§fn from_index(&self, i: usize) -> Self::NodeId
fn from_index(&self, i: usize) -> Self::NodeId
Convert
i
to a node index. i
must be a valid value in the graph.