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

A reference to a basic graph type.

Required Associated Types§

source

type Node: Copy + Eq

Type of a node.

source

type Edge: Copy + Eq

Type of an edge.

Implementations on Foreign Types§

source§

impl<'a, G> GraphTypeRef<'a> for &'a Gwhere G: GraphType,

§

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

§

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

source§

impl<'a, G> GraphTypeRef<'a> for NonNull<G>where G: GraphType,

§

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

§

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

Implementors§

source§

impl<'a, G> GraphTypeRef<'a> for Network<'a, G>where G: GraphType,

§

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

§

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

source§

impl<'a, G> GraphTypeRef<'a> for ReverseDigraph<'a, G>where G: GraphTypeRef<'a>,

§

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

§

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