Skip to main content

NodeValues

Trait 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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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,