pub struct Cluster {
pub id: u64,
pub level: usize,
pub vertices: HashSet<VertexId>,
pub boundary_edges: Vec<EdgeId>,
pub boundary_size: u64,
pub parent: Option<u64>,
pub children: Vec<u64>,
}Expand description
A cluster at a specific level in the hierarchy
Fields§
§id: u64Unique cluster ID
level: usizeLevel in hierarchy (0 = leaf level)
vertices: HashSet<VertexId>Vertices contained in this cluster
boundary_edges: Vec<EdgeId>Boundary edges (edges leaving the cluster)
boundary_size: u64Boundary size (cut value if this cluster were separated)
parent: Option<u64>Parent cluster ID (None for root)
children: Vec<u64>Child cluster IDs (empty for leaf clusters)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cluster
impl RefUnwindSafe for Cluster
impl Send for Cluster
impl Sync for Cluster
impl Unpin for Cluster
impl UnwindSafe for Cluster
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