WithSubgraph

Trait WithSubgraph 

Source
pub trait WithSubgraph<G: Graph> {
    // Required methods
    fn empty_spanning_subgraph(&self) -> SpanningSubgraph<'_, G>;
    fn spanning_subgraph<I>(&self, vertices: I) -> SpanningSubgraph<'_, G>
       where I: IntoIterator,
             I::Item: IntoOwned<Edge<G>>;
    fn induced_subgraph<I>(&self, vertices: I) -> Subgraph<'_, G>
       where G: Incidence,
             I: IntoIterator,
             I::Item: IntoOwned<Vertex<G>>;
    fn edge_induced_subgraph<I>(&self, edges: I) -> Subgraph<'_, G>
       where I: IntoIterator,
             I::Item: IntoOwned<Edge<G>>;
}

Required Methods§

Source

fn empty_spanning_subgraph(&self) -> SpanningSubgraph<'_, G>

Source

fn spanning_subgraph<I>(&self, vertices: I) -> SpanningSubgraph<'_, G>
where I: IntoIterator, I::Item: IntoOwned<Edge<G>>,

Source

fn induced_subgraph<I>(&self, vertices: I) -> Subgraph<'_, G>
where G: Incidence, I: IntoIterator, I::Item: IntoOwned<Vertex<G>>,

Source

fn edge_induced_subgraph<I>(&self, edges: I) -> Subgraph<'_, G>
where I: IntoIterator, I::Item: IntoOwned<Edge<G>>,

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: Graph> WithSubgraph<G> for G