pub struct FragmentingAlgorithm { /* private fields */ }Expand description
Fragmenting algorithm for handling graph decomposition
Implementations§
Source§impl FragmentingAlgorithm
impl FragmentingAlgorithm
Sourcepub fn new(graph: Arc<DynamicGraph>) -> Self
pub fn new(graph: Arc<DynamicGraph>) -> Self
Create a new fragmenting algorithm instance
Sourcepub fn insert_edge(&mut self, _edge_id: EdgeId, u: VertexId, v: VertexId)
pub fn insert_edge(&mut self, _edge_id: EdgeId, u: VertexId, v: VertexId)
Handle edge insertion
Sourcepub fn delete_edge(&mut self, _edge_id: EdgeId, u: VertexId, v: VertexId)
pub fn delete_edge(&mut self, _edge_id: EdgeId, u: VertexId, v: VertexId)
Handle edge deletion
Sourcepub fn query(&self) -> FragmentResult
pub fn query(&self) -> FragmentResult
Query the current result
Sourcepub fn num_fragments(&self) -> usize
pub fn num_fragments(&self) -> usize
Get number of fragments
Sourcepub fn is_connected(&self) -> bool
pub fn is_connected(&self) -> bool
Is graph connected?
Auto Trait Implementations§
impl Freeze for FragmentingAlgorithm
impl !RefUnwindSafe for FragmentingAlgorithm
impl Send for FragmentingAlgorithm
impl Sync for FragmentingAlgorithm
impl Unpin for FragmentingAlgorithm
impl !UnwindSafe for FragmentingAlgorithm
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more