Degrees

Trait Degrees 

Source
pub trait Degrees: Adjacency {
    // Provided methods
    fn degree_spanning_subgraph<I>(
        &self,
        edges: I,
    ) -> DefaultVertexPropMut<Self, u32>
       where Self: WithEdge + WithVertexProp<u32>,
             I: IntoIterator,
             I::Item: IntoOwned<Edge<Self>> { ... }
    fn degree_add<P, I>(&self, degree: &mut P, edges: I)
       where Self: WithEdge,
             P: VertexPropMut<Self, u32>,
             I: IntoIterator,
             I::Item: IntoOwned<Edge<Self>> { ... }
    fn is_k_regular(&self, k: usize) -> bool
       where Self: WithEdge<Kind = Undirected> + VertexList { ... }
    fn is_regular(&self) -> bool
       where Self: WithEdge<Kind = Undirected> + VertexList { ... }
    fn maximum_out_degree(&self) -> Option<usize>
       where Self: VertexList { ... }
    fn minimum_out_degree(&self) -> Option<usize>
       where Self: VertexList { ... }
    fn is_isolated(&self, v: Vertex<Self>) -> bool
       where Self: WithEdge<Kind = Undirected> { ... }
    fn is_pendant(&self, v: Vertex<Self>) -> bool
       where Self: WithEdge<Kind = Undirected> { ... }
}

Provided Methods§

Source

fn degree_spanning_subgraph<I>( &self, edges: I, ) -> DefaultVertexPropMut<Self, u32>
where Self: WithEdge + WithVertexProp<u32>, I: IntoIterator, I::Item: IntoOwned<Edge<Self>>,

Source

fn degree_add<P, I>(&self, degree: &mut P, edges: I)
where Self: WithEdge, P: VertexPropMut<Self, u32>, I: IntoIterator, I::Item: IntoOwned<Edge<Self>>,

Source

fn is_k_regular(&self, k: usize) -> bool
where Self: WithEdge<Kind = Undirected> + VertexList,

Source

fn is_regular(&self) -> bool
where Self: WithEdge<Kind = Undirected> + VertexList,

Source

fn maximum_out_degree(&self) -> Option<usize>
where Self: VertexList,

Source

fn minimum_out_degree(&self) -> Option<usize>
where Self: VertexList,

Source

fn is_isolated(&self, v: Vertex<Self>) -> bool
where Self: WithEdge<Kind = Undirected>,

Source

fn is_pendant(&self, v: Vertex<Self>) -> bool
where Self: WithEdge<Kind = Undirected>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<G: Adjacency> Degrees for G