pub struct LocalKCutQuery {
pub seed_vertices: Vec<VertexId>,
pub budget_k: u64,
pub radius: usize,
}Expand description
Query parameters for local k-cut search
Specifies the search parameters for finding a local minimum cut:
- Where to start (seed vertices)
- Maximum cut size to accept (budget)
- How far to search (radius)
Fields§
§seed_vertices: Vec<VertexId>Seed vertices defining the search region
The algorithm starts BFS from these vertices. Multiple seeds allow searching from different starting points.
budget_k: u64Maximum acceptable cut value
The algorithm only returns cuts with value ≤ budget_k. This bounds the search space and ensures polynomial time.
radius: usizeMaximum search radius (BFS depth)
Limits how far from the seed vertices to explore. Larger radius = more thorough search but higher cost.
Trait Implementations§
Source§impl Clone for LocalKCutQuery
impl Clone for LocalKCutQuery
Source§fn clone(&self) -> LocalKCutQuery
fn clone(&self) -> LocalKCutQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LocalKCutQuery
impl RefUnwindSafe for LocalKCutQuery
impl Send for LocalKCutQuery
impl Sync for LocalKCutQuery
impl Unpin for LocalKCutQuery
impl UnwindSafe for LocalKCutQuery
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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