pub struct UndirectedAdaptor<G>(pub G);
Expand description
An edge direction removing graph adaptor.
Tuple Fields§
§0: G
Trait Implementations§
Source§impl<G: Clone> Clone for UndirectedAdaptor<G>
impl<G: Clone> Clone for UndirectedAdaptor<G>
Source§fn clone(&self) -> UndirectedAdaptor<G>
fn clone(&self) -> UndirectedAdaptor<G>
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> Data for UndirectedAdaptor<G>where
G: Data,
impl<G> Data for UndirectedAdaptor<G>where
G: Data,
type NodeWeight = <G as Data>::NodeWeight
type EdgeWeight = <G as Data>::EdgeWeight
Source§impl<G: Debug> Debug for UndirectedAdaptor<G>
impl<G: Debug> Debug for UndirectedAdaptor<G>
Source§impl<G> GraphBase for UndirectedAdaptor<G>where
G: GraphBase,
impl<G> GraphBase for UndirectedAdaptor<G>where
G: GraphBase,
Source§impl<G> GraphProp for UndirectedAdaptor<G>where
G: GraphBase,
impl<G> GraphProp for UndirectedAdaptor<G>where
G: GraphBase,
Source§type EdgeType = Undirected
type EdgeType = Undirected
The kind of edges in the graph.
fn is_directed(&self) -> bool
Source§impl<G> IntoEdgeReferences for UndirectedAdaptor<G>where
G: IntoEdgeReferences,
impl<G> IntoEdgeReferences for UndirectedAdaptor<G>where
G: IntoEdgeReferences,
type EdgeRef = <G as IntoEdgeReferences>::EdgeRef
type EdgeReferences = <G as IntoEdgeReferences>::EdgeReferences
fn edge_references(self) -> Self::EdgeReferences
Source§impl<G> IntoEdges for UndirectedAdaptor<G>where
G: IntoEdgesDirected,
impl<G> IntoEdges for UndirectedAdaptor<G>where
G: IntoEdgesDirected,
type Edges = Chain<<G as IntoEdgesDirected>::EdgesDirected, <G as IntoEdgesDirected>::EdgesDirected>
fn edges(self, a: Self::NodeId) -> Self::Edges
Source§impl<G> IntoNeighbors for UndirectedAdaptor<G>where
G: IntoNeighborsDirected,
impl<G> IntoNeighbors for UndirectedAdaptor<G>where
G: IntoNeighborsDirected,
type Neighbors = Chain<<G as IntoNeighborsDirected>::NeighborsDirected, <G as IntoNeighborsDirected>::NeighborsDirected>
Source§impl<G> IntoNodeIdentifiers for UndirectedAdaptor<G>where
G: IntoNodeIdentifiers,
impl<G> IntoNodeIdentifiers for UndirectedAdaptor<G>where
G: IntoNodeIdentifiers,
type NodeIdentifiers = <G as IntoNodeIdentifiers>::NodeIdentifiers
fn node_identifiers(self) -> Self::NodeIdentifiers
Source§impl<G> IntoNodeReferences for UndirectedAdaptor<G>where
G: IntoNodeReferences,
impl<G> IntoNodeReferences for UndirectedAdaptor<G>where
G: IntoNodeReferences,
type NodeRef = <G as IntoNodeReferences>::NodeRef
type NodeReferences = <G as IntoNodeReferences>::NodeReferences
fn node_references(self) -> Self::NodeReferences
Source§impl<G> NodeCount for UndirectedAdaptor<G>where
G: NodeCount,
impl<G> NodeCount for UndirectedAdaptor<G>where
G: NodeCount,
fn node_count(&self) -> usize
Source§impl<G> NodeIndexable for UndirectedAdaptor<G>where
G: NodeIndexable,
impl<G> NodeIndexable for UndirectedAdaptor<G>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).
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.Source§impl<G> Visitable for UndirectedAdaptor<G>where
G: Visitable,
impl<G> Visitable for UndirectedAdaptor<G>where
G: Visitable,
impl<G: Copy> Copy for UndirectedAdaptor<G>
impl<G: GraphRef> GraphRef for UndirectedAdaptor<G>
impl<G> NodeCompactIndexable for UndirectedAdaptor<G>where
G: NodeCompactIndexable,
Auto Trait Implementations§
impl<G> Freeze for UndirectedAdaptor<G>where
G: Freeze,
impl<G> RefUnwindSafe for UndirectedAdaptor<G>where
G: RefUnwindSafe,
impl<G> Send for UndirectedAdaptor<G>where
G: Send,
impl<G> Sync for UndirectedAdaptor<G>where
G: Sync,
impl<G> Unpin for UndirectedAdaptor<G>where
G: Unpin,
impl<G> UnwindSafe for UndirectedAdaptor<G>where
G: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more