Skip to main content

org_degree

Function org_degree 

Source
pub fn org_degree(c: &Community) -> f64
Available on crate feature raster only.
Expand description

Organization degree o(C) = 1 if |C|<2 else 1 - (|Π₀(C)|-1)/(|C|-1) (topology-deck.html:206-208). Built as an isolated per-community graph (own members as nodes, own links as edges) rather than a slice of the shared deck_hypergraph: the deck’s orgOf walks only c.links, and the periphery communities draw from an overlapping pool (cell α/cell β both shuffle the full 14-agent bloc), so filtering a shared multi- community graph by node membership alone (subhypergraph) could admit another community’s edge whose endpoints happen to fall inside this community’s member set — this isolated construction is immune to that and reproduces orgOf exactly. Reuses connected_components (algorithms::connected) for |Π₀(C)|, per Task 6.