[−][src]Struct saboten::cactusgraph::CactusGraph
A cactus graph constructed from a biedged graph. The constructor
clones the original graph to mutate, but also keeps a reference to
original. This ensures the original can't be accidentally mutated
while the CactusGraph exists, and makes it easy to access the
untouched original graph. The mapping of vertices is tracked using
the embedded Projection
struct.
Fields
original_graph: &'a BiedgedGraph
graph: BiedgedGraph
projection: Projection
cycles: Vec<Vec<(u64, u64)>>
cycle_map: FnvHashMap<(u64, u64), Vec<usize>>
Implementations
impl<'a> CactusGraph<'a>
[src]
pub fn from_biedged_graph(biedged_graph: &'a BiedgedGraph) -> Self
[src]
Construct a cactus graph from a biedged graph. Clones the input graph before mutating, and keeps a reference to the original.
Trait Implementations
impl<'a> BiedgedWrapper for CactusGraph<'a>
[src]
fn base_graph(&self) -> &UnGraphMap<u64, BiedgedWeight>
[src]
fn biedged_graph(&self) -> &BiedgedGraph
[src]
fn projection(&self) -> &Projection
[src]
fn projected_node(&self, n: u64) -> u64
[src]
fn projected_edge(&self, (x, y): (u64, u64)) -> (u64, u64)
[src]
impl<'a> Clone for CactusGraph<'a>
[src]
fn clone(&self) -> CactusGraph<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for CactusGraph<'a>
impl<'a> Send for CactusGraph<'a>
impl<'a> Sync for CactusGraph<'a>
impl<'a> Unpin for CactusGraph<'a>
impl<'a> UnwindSafe for CactusGraph<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,