[][src]Trait bigraph::StaticBigraphFromDigraph

pub trait StaticBigraphFromDigraph: StaticBigraph {
    type Topology: StaticGraph<NodeData = Self::NodeData, EdgeData = Self::EdgeData>;
    fn new(
        _topology: Self::Topology,
        _binode_mapping_function: fn(_: &Self::NodeData) -> Self::NodeData
    ) -> Self;
fn new_unchecked(
        _topology: Self::Topology,
        _binode_mapping_function: fn(_: &Self::NodeData) -> Self::NodeData
    ) -> Self; }

A static bigraph that can be created from a static digraph. Since the graph is static, the resulting topology will be the input topology, only the bigraph node mapping function will be computed on top.

Associated Types

type Topology: StaticGraph<NodeData = Self::NodeData, EdgeData = Self::EdgeData>

The type of directed topology the bigraph is created from.

Loading content...

Required methods

fn new(
    _topology: Self::Topology,
    _binode_mapping_function: fn(_: &Self::NodeData) -> Self::NodeData
) -> Self

Converts the given topology into a bigraph with the given mapping function. If the resulting graph has wrongly mapped nodes, the method panics.

fn new_unchecked(
    _topology: Self::Topology,
    _binode_mapping_function: fn(_: &Self::NodeData) -> Self::NodeData
) -> Self

Converts the given topology into a bigraph with the given mapping function. Unmapped nodes are stored without mapping. If a node maps to another node, but the other node does not map back, then this method panics.

Loading content...

Implementors

impl<Topology: StaticGraph> StaticBigraphFromDigraph for NodeBigraphWrapper<Topology> where
    Self::NodeData: Eq + Hash + Debug
[src]

type Topology = Topology

Loading content...