pub enum PyramidAlgo {
Louvain,
Types,
}Expand description
Which algorithm forms the pyramid’s communities. The format and every
downstream consumer key on opaque community IDs, so the choice only changes
how the partition is computed — all modes must be deterministic to keep the
file content-hash reproducible (see docs/BENCHMARK.md).
Variants§
Louvain
Topological communities by Louvain modularity (the default, byte-identical across runs). “What clusters densely?”
Types
RDF-native partition: one community per rdf:type class (the type
predicate auto-detected, or forced via --type-predicate), untyped /
object-only nodes in one «untyped» bucket. Communities are self-naming
(a community is a class), the summary graph becomes the class→class
relation graph, and the subClassOf rollups supply the coarser levels.
Falls back to PyramidAlgo::Louvain when the graph has no usable typing.
Implementations§
Source§impl PyramidAlgo
impl PyramidAlgo
Sourcepub fn from_cli(s: &str) -> Option<PyramidAlgo>
pub fn from_cli(s: &str) -> Option<PyramidAlgo>
Parse the CLI spelling (louvain / types); None for anything else.
Trait Implementations§
Source§impl Clone for PyramidAlgo
impl Clone for PyramidAlgo
Source§fn clone(&self) -> PyramidAlgo
fn clone(&self) -> PyramidAlgo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more