geometric-traits 0.2.0

Trait-based algebraic and graph algorithms for Rust, supporting no_std environments
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Submodule defining a builder trait for monopartite graphs.

use crate::traits::MonopartiteGraph;

/// Trait for building a monoparite graph.
pub trait MonopartiteGraphBuilder {
    /// The graph type that the builder builds.
    type MonopartiteGraph: MonopartiteGraph;

    #[must_use]
    /// Sets the nodes of the graph.
    fn nodes(self, nodes: <Self::MonopartiteGraph as MonopartiteGraph>::Nodes) -> Self;
}