Struct graph_algorithms::list_of_algorithms::dijkstras::dijkstras::Graph
source · [−]Expand description
A graph data structure represented as an adjacency list.
Fields
adj_list: Vec<Vec<Node>>The adjacency list of the graph, where the i-th element contains a list of adjacent nodes for vertex i.
vertices: usizeThe total number of vertices in the graph.
Auto Trait Implementations
impl RefUnwindSafe for Graph
impl Send for Graph
impl Sync for Graph
impl Unpin for Graph
impl UnwindSafe for Graph
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more