pub trait GraphType {
    type Node<'a>: Copy + Eq;
    type Edge<'a>: Copy + Eq;
}
Expand description

Base information of a graph.

Required Associated Types§

source

type Node<'a>: Copy + Eq

Type of a node.

source

type Edge<'a>: Copy + Eq

Type of an edge.

Implementations on Foreign Types§

source§

impl<G> GraphType for Rc<G>where G: GraphType,

§

type Node<'a> = <G as GraphType>::Node<'a>

§

type Edge<'a> = <G as GraphType>::Edge<'a>

source§

impl<'g, G> GraphType for &'g Gwhere G: GraphType,

§

type Node<'a> = <G as GraphType>::Node<'a>

§

type Edge<'a> = <G as GraphType>::Edge<'a>

Implementors§

source§

impl<'g, G> GraphType for Network<'g, G>where G: GraphType,

§

type Node<'a> = <G as GraphType>::Node<'a>

§

type Edge<'a> = NetworkEdge<<G as GraphType>::Edge<'a>>

source§

impl<'g, G> GraphType for ReverseDigraph<'g, G>where G: GraphType,

§

type Node<'a> = <G as GraphType>::Node<'a>

§

type Edge<'a> = <G as GraphType>::Edge<'a>

source§

impl<ID> GraphType for VecGraph<ID>where ID: PrimInt + Unsigned,

§

type Node<'a> = Node<ID>

§

type Edge<'a> = Edge<ID>

source§

impl<ID, N, E> GraphType for LinkedListGraph<ID, N, E>where ID: PrimInt + Unsigned,

§

type Node<'a> = Node<ID>

§

type Edge<'a> = Edge<ID>