pub struct FastPercolation { /* private fields */ }Expand description
Fast union-find data structure for rigidity percolation
Uses path compression and union by rank for efficient connectivity analysis of large graphs.
Implementations§
Source§impl FastPercolation
impl FastPercolation
Sourcepub fn compute_rigidity(
&mut self,
edges: &[(usize, usize)],
n_nodes: usize,
) -> RigidityResult
pub fn compute_rigidity( &mut self, edges: &[(usize, usize)], n_nodes: usize, ) -> RigidityResult
Computes rigidity metrics for a graph
Uses Laman’s theorem to determine if a graph is minimally rigid. A graph with V vertices is minimally rigid if it has exactly 2V-3 edges and every subgraph with k vertices has at most 2k-3 edges.
§Arguments
edges- Slice of (u, v) tuples representing edgesn_nodes- Total number of nodes in the graph
§Returns
RigidityResult containing comprehensive rigidity metrics
Auto Trait Implementations§
impl Freeze for FastPercolation
impl RefUnwindSafe for FastPercolation
impl Send for FastPercolation
impl Sync for FastPercolation
impl Unpin for FastPercolation
impl UnsafeUnpin for FastPercolation
impl UnwindSafe for FastPercolation
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