Degrees

Trait Degrees 

Source
pub trait Degrees: Adjacency {
    // Provided methods
    fn degree_spanning_subgraph<I>(&self, edges: I) -> Self::VertexProp
       where Self: WithEdge + WithVertexProp<u32>,
             I: IntoIterator,
             <I as IntoIterator>::Item: IntoOwned<Self::Edge> { ... }
    fn degree_add<P, I>(&self, degree: &mut P, edges: I)
       where Self: WithEdge,
             P: VertexPropMut<Self, u32>,
             I: IntoIterator,
             <I as IntoIterator>::Item: IntoOwned<Self::Edge> { ... }
    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: Self::Vertex) -> bool
       where Self: WithEdge<Kind = Undirected> { ... }
    fn is_pendant(&self, v: Self::Vertex) -> bool
       where Self: WithEdge<Kind = Undirected> { ... }
}

Provided Methods§

Source

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

Source

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

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: Self::Vertex) -> bool
where Self: WithEdge<Kind = Undirected>,

Source

fn is_pendant(&self, v: Self::Vertex) -> 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> Degrees for G
where G: Adjacency,