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 moreimpl Copy for PyramidAlgo
Source§impl Debug for PyramidAlgo
impl Debug for PyramidAlgo
Source§impl Default for PyramidAlgo
impl Default for PyramidAlgo
Source§fn default() -> PyramidAlgo
fn default() -> PyramidAlgo
impl Eq for PyramidAlgo
Source§impl PartialEq for PyramidAlgo
impl PartialEq for PyramidAlgo
impl StructuralPartialEq for PyramidAlgo
Auto Trait Implementations§
impl Forget for PyramidAlgo
impl Freeze for PyramidAlgo
impl Move for PyramidAlgo
impl RefUnwindSafe for PyramidAlgo
impl Send for PyramidAlgo
impl Sync for PyramidAlgo
impl Unpin for PyramidAlgo
impl UnsafeUnpin for PyramidAlgo
impl UnwindSafe for PyramidAlgo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.