Trait graph::prelude::NodeValues

source ·
pub trait NodeValues<NI, NV>where
    NI: Idx,{
    // Required method
    fn node_value(&self, node: NI) -> &NV;
}
Expand description

A graph that allows storing a value per node.

Required Methods§

source

fn node_value(&self, node: NI) -> &NV

Implementors§

source§

impl<NI, NV, EV> NodeValues<NI, NV> for DirectedALGraph<NI, NV, EV>where NI: Idx,

source§

impl<NI, NV, EV> NodeValues<NI, NV> for DirectedCsrGraph<NI, NV, EV>where NI: Idx,

source§

impl<NI, NV, EV> NodeValues<NI, NV> for UndirectedALGraph<NI, NV, EV>where NI: Idx,

source§

impl<NI, NV, EV> NodeValues<NI, NV> for UndirectedCsrGraph<NI, NV, EV>where NI: Idx,