pub struct AdjacencyList {
pub edges: Vec<Vec<(usize, f64)>>,
}Expand description
A graph given by adjacency lists.
Fields§
§edges: Vec<Vec<(usize, f64)>>edges[v] lists the out-edges (target, cost) of v.
Trait Implementations§
Source§impl Clone for AdjacencyList
impl Clone for AdjacencyList
Source§impl Debug for AdjacencyList
impl Debug for AdjacencyList
Source§impl Default for AdjacencyList
impl Default for AdjacencyList
Source§impl Graph for AdjacencyList
impl Graph for AdjacencyList
Source§impl PartialEq for AdjacencyList
impl PartialEq for AdjacencyList
impl StructuralPartialEq for AdjacencyList
Auto Trait Implementations§
impl Forget for AdjacencyList
impl Freeze for AdjacencyList
impl Move for AdjacencyList
impl RefUnwindSafe for AdjacencyList
impl Send for AdjacencyList
impl Sync for AdjacencyList
impl Unpin for AdjacencyList
impl UnsafeUnpin for AdjacencyList
impl UnwindSafe for AdjacencyList
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more