pub struct OptDenseDigraph<N, E> { /* private fields */ }Implementations§
Source§impl<N: Default, E: Default> OptDenseDigraph<N, E>
impl<N: Default, E: Default> OptDenseDigraph<N, E>
pub fn new(n: usize) -> OptDenseDigraph<N, E>
pub fn ref_graph(&self) -> &Graph<N, E, Directed>
pub fn add_node_with_weight(&mut self, weight: N) -> NodeIdx
pub fn add_node(&mut self) -> NodeIdx
pub fn add_edge_with_weight(&mut self, src: NodeIdx, dst: NodeIdx, weight: E)
pub fn add_edge(&mut self, src: NodeIdx, dst: NodeIdx)
pub fn from_( num_nodes: NodeIdx, edge_list: &[(NodeIdx, NodeIdx)], ) -> OptDenseDigraph<N, E>
Trait Implementations§
Source§impl<N, E> DirectedGraph for OptDenseDigraph<N, E>
impl<N, E> DirectedGraph for OptDenseDigraph<N, E>
Auto Trait Implementations§
impl<N, E> Freeze for OptDenseDigraph<N, E>
impl<N, E> RefUnwindSafe for OptDenseDigraph<N, E>where
N: RefUnwindSafe,
E: RefUnwindSafe,
impl<N, E> Send for OptDenseDigraph<N, E>
impl<N, E> Sync for OptDenseDigraph<N, E>
impl<N, E> Unpin for OptDenseDigraph<N, E>
impl<N, E> UnwindSafe for OptDenseDigraph<N, E>where
N: UnwindSafe,
E: UnwindSafe,
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