pub struct CohesiveBlocks {
pub blocks: Vec<Vec<VertexId>>,
pub cohesion: Vec<i64>,
pub parent: Vec<i64>,
pub block_tree: Graph,
}Expand description
Result of cohesive_blocks.
All four members are index-aligned: entry i of cohesion
and parent describes block i of blocks,
and vertex i of block_tree is the same block.
Fields§
§blocks: Vec<Vec<VertexId>>The cohesive blocks; each is the sorted list of original vertex IDs
that make up the block. Block 0 is always the whole graph.
cohesion: Vec<i64>The vertex connectivity (structural cohesion) of each block.
parent: Vec<i64>The block-hierarchy parent of each block (an index into
blocks), or -1 for the root block.
block_tree: GraphThe block hierarchy as a directed graph: one vertex per block, an arc from each block’s parent to the block.
Trait Implementations§
Source§impl Clone for CohesiveBlocks
impl Clone for CohesiveBlocks
Source§fn clone(&self) -> CohesiveBlocks
fn clone(&self) -> CohesiveBlocks
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 CohesiveBlocks
impl !RefUnwindSafe for CohesiveBlocks
impl Send for CohesiveBlocks
impl !Sync for CohesiveBlocks
impl Unpin for CohesiveBlocks
impl UnsafeUnpin for CohesiveBlocks
impl UnwindSafe for CohesiveBlocks
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