pub struct SitePercolation {
pub giant_size: Vec<u32>,
pub edge_count: Vec<u32>,
}Expand description
Outputs of site_percolation. Same length as vertex_order.
giant_size[i] is the size of the largest connected component
after vertex vertex_order[i] is activated; edge_count[i] is
the cumulative number of edges added through step i (an edge
is “added” the moment both its endpoints become active).
Fields§
§giant_size: Vec<u32>Size of the largest connected component after the i-th vertex is activated.
edge_count: Vec<u32>Cumulative count of edges activated through step i. An edge
(u, v) activates the moment its second endpoint joins the
active set. Self-loops on the just-activated vertex and
parallel edges each count separately (matches upstream’s
IGRAPH_LOOPS | IGRAPH_MULTIPLE neighbor enumeration).
Trait Implementations§
Source§impl Clone for SitePercolation
impl Clone for SitePercolation
Source§fn clone(&self) -> SitePercolation
fn clone(&self) -> SitePercolation
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 moreSource§impl Debug for SitePercolation
impl Debug for SitePercolation
Source§impl PartialEq for SitePercolation
impl PartialEq for SitePercolation
impl StructuralPartialEq for SitePercolation
Auto Trait Implementations§
impl Freeze for SitePercolation
impl RefUnwindSafe for SitePercolation
impl Send for SitePercolation
impl Sync for SitePercolation
impl Unpin for SitePercolation
impl UnsafeUnpin for SitePercolation
impl UnwindSafe for SitePercolation
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