Human-readable name for progress reporting and result column headers.
(&self)
| 58 | impl GraphAlgorithm { |
| 59 | /// Human-readable name for progress reporting and result column headers. |
| 60 | pub fn name(&self) -> &'static str { |
| 61 | match self { |
| 62 | Self::PageRank => "pagerank", |
| 63 | Self::Wcc => "wcc", |
| 64 | Self::LabelPropagation => "label_propagation", |
| 65 | Self::Lcc => "lcc", |
| 66 | Self::Sssp => "sssp", |
| 67 | Self::Betweenness => "betweenness", |
| 68 | Self::Closeness => "closeness", |
| 69 | Self::Harmonic => "harmonic", |
| 70 | Self::Degree => "degree", |
| 71 | Self::Louvain => "louvain", |
| 72 | Self::Triangles => "triangles", |
| 73 | Self::Diameter => "diameter", |
| 74 | Self::KCore => "kcore", |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | /// Whether this algorithm is iterative (emits progress per iteration). |
| 79 | pub fn is_iterative(&self) -> bool { |
no outgoing calls
no test coverage detected