EdgeVec

Type Alias EdgeVec 

Source
pub type EdgeVec<T, Id> = Vec<((Id, Id), T)>;
Expand description

Collection of edges for the layout, stored in a Vec

Aliased Type§

pub struct EdgeVec<T, Id> { /* private fields */ }

Trait Implementations§

Source§

impl<T: Clone, Id: Clone> Edges<T, Id> for EdgeVec<T, Id>

Source§

fn iter_edges(&self) -> impl Iterator<Item = ((Id, Id), T)>

Create an iterator through the edges ((node_1, node_2), weight)