pub struct NaiveTaggedGraph<V, E, G = TreeBackedGraph>{ /* private fields */ }Expand description
A naive implementation of tagged graphs.
Trait Implementations§
Source§impl<V, E, G: Clone> Clone for NaiveTaggedGraph<V, E, G>
impl<V, E, G: Clone> Clone for NaiveTaggedGraph<V, E, G>
Source§fn clone(&self) -> NaiveTaggedGraph<V, E, G>
fn clone(&self) -> NaiveTaggedGraph<V, E, G>
Returns a duplicate 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<V, E, G> Default for NaiveTaggedGraph<V, E, G>
impl<V, E, G> Default for NaiveTaggedGraph<V, E, G>
Source§impl<V, E, G> DirectedOrNot for NaiveTaggedGraph<V, E, G>
impl<V, E, G> DirectedOrNot for NaiveTaggedGraph<V, E, G>
Source§const DIRECTED_OR_NOT: bool = G::DIRECTED_OR_NOT
const DIRECTED_OR_NOT: bool = G::DIRECTED_OR_NOT
When the graph is directed, it is true; otherwise, it is false.
Source§impl<V, E, G> EdgeShrinkableTaggedGraph for NaiveTaggedGraph<V, E, G>
impl<V, E, G> EdgeShrinkableTaggedGraph for NaiveTaggedGraph<V, E, G>
Source§impl<V, E, G> GrowableTaggedGraph for NaiveTaggedGraph<V, E, G>
impl<V, E, G> GrowableTaggedGraph for NaiveTaggedGraph<V, E, G>
Source§impl<V, E, G> QueryableTaggedGraph for NaiveTaggedGraph<V, E, G>
impl<V, E, G> QueryableTaggedGraph for NaiveTaggedGraph<V, E, G>
Source§fn vertex_size(&self) -> usize
fn vertex_size(&self) -> usize
Total number of vertices.
Source§fn iter_vertices(
&self,
) -> Box<dyn Iterator<Item = (VertexId, &Self::Vertex)> + '_>
fn iter_vertices( &self, ) -> Box<dyn Iterator<Item = (VertexId, &Self::Vertex)> + '_>
Iterates over vertices without any specific order.
Source§fn iter_edges(&self) -> Box<dyn Iterator<Item = (Edge, &Self::Edge)> + '_>
fn iter_edges(&self) -> Box<dyn Iterator<Item = (Edge, &Self::Edge)> + '_>
Iterates edges without any specific order.
Source§fn edges_connecting(
&self,
source: &VertexId,
sink: &VertexId,
) -> Box<dyn Iterator<Item = (Edge, &Self::Edge)> + '_>
fn edges_connecting( &self, source: &VertexId, sink: &VertexId, ) -> Box<dyn Iterator<Item = (Edge, &Self::Edge)> + '_>
Iterates edges connecting two specified endpoints.
Source§impl<V, E, G> TaggedGraph for NaiveTaggedGraph<V, E, G>
impl<V, E, G> TaggedGraph for NaiveTaggedGraph<V, E, G>
Source§type LowerGraph = G
type LowerGraph = G
type of underlying low-level graph
fn lower_graph(&self) -> &Self::LowerGraph
fn vertex_by_id(&self, vid: &VertexId) -> Option<&Self::Vertex>
fn id_by_vertex(&self, vert: &Self::Vertex) -> Option<VertexId>
fn edge_by_id(&self, eid: &EdgeId) -> Option<&Self::Edge>
fn id_by_edge(&self, edge: &Self::Edge) -> Option<EdgeId>
fn contains_vertex_by_id(&self, vid: &VertexId) -> bool
fn contains_vertex(&self, vert: &Self::Vertex) -> bool
fn contains_edge_by_id(&self, eid: &EdgeId) -> bool
fn contains_edge(&self, edge: &Self::Edge) -> bool
Source§impl<V, E, G> VertexShrinkableTaggedGraph for NaiveTaggedGraph<V, E, G>
impl<V, E, G> VertexShrinkableTaggedGraph for NaiveTaggedGraph<V, E, G>
Auto Trait Implementations§
impl<V, E, G> Freeze for NaiveTaggedGraph<V, E, G>where
G: Freeze,
impl<V, E, G> RefUnwindSafe for NaiveTaggedGraph<V, E, G>
impl<V, E, G> Send for NaiveTaggedGraph<V, E, G>
impl<V, E, G> Sync for NaiveTaggedGraph<V, E, G>
impl<V, E, G> Unpin for NaiveTaggedGraph<V, E, G>where
G: Unpin,
impl<V, E, G> UnwindSafe for NaiveTaggedGraph<V, E, G>
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