pub struct GraphRep<K> {
pub id: Vec<(usize, usize, K)>,
pub mapping: Vec<Vec<usize>>,
/* private fields */
}Fields§
§id: Vec<(usize, usize, K)>§mapping: Vec<Vec<usize>>Implementations§
Source§impl<K: PartialOrd + Copy> GraphRep<K>
impl<K: PartialOrd + Copy> GraphRep<K>
pub fn edges_from(&self, vertex: usize) -> &[(usize, K, usize)]
pub fn original_edge(&self, edge_id: usize) -> Option<&(usize, usize, K)>
pub fn num_vertices(&self) -> usize
pub fn num_edges(&self) -> usize
pub fn v_len(&self) -> usize
pub fn e_len(&self) -> usize
pub fn from_list(edges: Vec<(usize, usize, K)>) -> Self
pub fn update_v_e(&mut self, edges: &[(usize, usize, K, usize)])
pub fn current_edges(&self) -> Vec<(usize, usize, K, usize)>
Auto Trait Implementations§
impl<K> Freeze for GraphRep<K>
impl<K> RefUnwindSafe for GraphRep<K>where
K: RefUnwindSafe,
impl<K> Send for GraphRep<K>where
K: Send,
impl<K> Sync for GraphRep<K>where
K: Sync,
impl<K> Unpin for GraphRep<K>where
K: Unpin,
impl<K> UnwindSafe for GraphRep<K>where
K: 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