pub struct AdjSet<V: AdjSetVertex, K: AdjSetEdgeKind<V>> { /* private fields */ }Implementations§
Source§impl<V, K> AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
impl<V, K> AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
Trait Implementations§
Source§impl<V, K> Adjacency for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
impl<V, K> Adjacency for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
fn out_neighbors(&self, v: Vertex<Self>) -> OutNeighborIter<'_, Self>
fn out_degree(&self, v: Vertex<Self>) -> usize
Source§impl<V, K> Default for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
impl<V, K> Default for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
Source§impl<V, K> EdgeList for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
impl<V, K> EdgeList for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
fn edges(&self) -> EdgeIter<'_, Self>
fn num_edges(&self) -> usize
fn get_edge_by_ends( &self, u: Vertex<Self>, v: Vertex<Self>, ) -> Option<Edge<Self>>
fn edges_ends(&self) -> EdgesEnds<'_, Self, EdgeIter<'_, Self>> ⓘ
fn edges_with_ends(&self) -> EdgesWithEnds<'_, Self, EdgeIter<'_, Self>> ⓘ
fn edge_by_ends(&self, u: Vertex<Self>, v: Vertex<Self>) -> Edge<Self>
Source§impl<'a, V, K> EdgeTypes<'a, AdjSet<V, K>> for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
impl<'a, V, K> EdgeTypes<'a, AdjSet<V, K>> for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
Source§impl<V, K> Incidence for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
impl<V, K> Incidence for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
fn out_edges(&self, v: Vertex<Self>) -> OutEdgeIter<'_, Self>
fn out_edges_ends( &self, v: Vertex<Self>, ) -> EdgesEnds<'_, Self, OutEdgeIter<'_, Self>> ⓘ
fn out_edges_with_ends( &self, v: Vertex<Self>, ) -> EdgesWithEnds<'_, Self, OutEdgeIter<'_, Self>> ⓘ
Source§impl<V, K> VertexList for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
impl<V, K> VertexList for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
fn vertices(&self) -> VertexIter<'_, Self>
fn num_vertices(&self) -> usize
Source§impl<'a, V, K> VertexTypes<'a, AdjSet<V, K>> for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
impl<'a, V, K> VertexTypes<'a, AdjSet<V, K>> for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
Source§impl<V, K> WithEdge for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
impl<V, K> WithEdge for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
type Kind = K
type Edge = <K as AdjSetEdgeKind<V>>::Edge
type OptionEdge = Option<<K as AdjSetEdgeKind<V>>::Edge>
fn source(&self, e: Edge<Self>) -> Vertex<Self>
fn target(&self, e: Edge<Self>) -> Vertex<Self>
fn orientation(&self, _e: Edge<Self>) -> Orientation
fn get_reverse(&self, e: Edge<Self>) -> Option<Edge<Self>>
fn ends<'a, I, O>(&'a self, item: I) -> Owhere
I: Ends<'a, Self, O>,
fn end_vertices(&self, e: Edge<Self>) -> (Vertex<Self>, Vertex<Self>)
fn with_ends<I>(&self, iter: I) -> EdgesWithEnds<'_, Self, I::IntoIter> ⓘ
fn opposite(&self, u: Vertex<Self>, e: Edge<Self>) -> Vertex<Self>
fn is_incident(&self, v: Vertex<Self>, e: Edge<Self>) -> bool
fn reverse(&self, e: Edge<Self>) -> Edge<Self>where
Self: WithEdge<Kind = Undirected>,
fn edge_none() -> OptionEdge<Self>
fn edge_some(e: Edge<Self>) -> OptionEdge<Self>
fn edge_prop<P, T>(&self, value: T) -> Pwhere
P: EdgePropMutNew<Self, T>,
T: Clone,
fn edge_prop_from_fn<P, F, T>(&self, fun: F) -> P
Source§impl<V, K, T> WithEdgeProp<T> for AdjSet<V, K>
impl<V, K, T> WithEdgeProp<T> for AdjSet<V, K>
type EdgeProp = HashMapProp<<K as AdjSetEdgeKind<V>>::Edge, T>
Source§fn default_edge_prop(&self, value: T) -> DefaultEdgePropMut<Self, T>where
T: Clone,
fn default_edge_prop(&self, value: T) -> DefaultEdgePropMut<Self, T>where
T: Clone,
Creates a new default edge property where the initial value associated with each edge is
value.Source§fn default_edge_prop_from_fn<P, F>(&self, fun: F) -> P
fn default_edge_prop_from_fn<P, F>(&self, fun: F) -> P
Creates a new default edge property where the initial value associated with each edge
e
is produced by fun(e).Source§impl<V, K> WithVertex for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
impl<V, K> WithVertex for AdjSet<V, K>where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>,
type Vertex = V
type OptionVertex = Option<V>
fn vertex_none() -> OptionVertex<Self>
fn vertex_some(v: Vertex<Self>) -> OptionVertex<Self>
fn vertex_prop<P, T>(&self, value: T) -> Pwhere
P: VertexPropMutNew<Self, T>,
T: Clone,
fn vertex_prop_from_fn<P, T, F>(&self, fun: F) -> Pwhere
Self: VertexList,
P: VertexPropMutNew<Self, T>,
F: FnMut(Vertex<Self>) -> T,
T: Default + Clone,
Source§impl<V, K, T> WithVertexProp<T> for AdjSet<V, K>
impl<V, K, T> WithVertexProp<T> for AdjSet<V, K>
Source§type VertexProp = HashMapProp<V, T>
type VertexProp = HashMapProp<V, T>
The vertex property type.
Source§fn default_vertex_prop(&self, value: T) -> DefaultVertexPropMut<Self, T>where
T: Clone,
fn default_vertex_prop(&self, value: T) -> DefaultVertexPropMut<Self, T>where
T: Clone,
Creates a new default vertex property where the initial value associated with each vertex
is
value.Source§fn default_vertex_prop_from_fn<P, F>(&self, fun: F) -> Pwhere
Self: VertexList,
P: VertexPropMutNew<Self, T>,
F: FnMut(Vertex<Self>) -> T,
T: Default + Clone,
fn default_vertex_prop_from_fn<P, F>(&self, fun: F) -> Pwhere
Self: VertexList,
P: VertexPropMutNew<Self, T>,
F: FnMut(Vertex<Self>) -> T,
T: Default + Clone,
Creates a new default vertex property where the initial value associated with each vertex
v is produced by fun(v).Auto Trait Implementations§
impl<V, K> Freeze for AdjSet<V, K>
impl<V, K> RefUnwindSafe for AdjSet<V, K>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, K> Send for AdjSet<V, K>
impl<V, K> Sync for AdjSet<V, K>
impl<V, K> Unpin for AdjSet<V, K>
impl<V, K> UnwindSafe for AdjSet<V, K>where
V: UnwindSafe,
K: UnwindSafe,
Blanket Implementations§
Source§impl<G> Bfs for Gwhere
G: WithEdge,
impl<G> Bfs for Gwhere
G: WithEdge,
fn bfs<V>(
&self,
vis: V,
) -> BfsAlg<&Self, V, AllVertices<'_, Self>, NewVertexProp<'_, Self, Color>, Owned<BfsQueue<Self>>>where
V: Visitor<Self>,
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