pub enum GraphAlgorithm {
Show 27 variants
PageRank,
PersonalizedPageRank,
Bfs,
Louvain,
EigenvectorCentrality,
KatzCentrality,
Hits,
BetweennessCentrality,
EdgeBetweennessCentrality,
Sssp,
DegreesAll,
InDegreesAll,
OutDegreesAll,
WeaklyConnectedComponents,
StronglyConnectedComponents,
TriangleCountAll,
CoreNumber,
KCore,
MinimumSpanningTree,
Leiden,
Ecg,
SpectralModularityMaximization,
ForceAtlas2,
Jaccard,
Sorensen,
Overlap,
Cosine,
}Expand description
Native graph algorithm supported by the cuGraph operator boundary.
Every variant must have a matching entry in GRAPH_OPERATION_REGISTRY.
The cuGraph C API index is at https://docs.nvidia.com/cugraph/latest/api_docs/cugraph_c/.
Variants§
PageRank
PersonalizedPageRank
Bfs
Louvain
EigenvectorCentrality
KatzCentrality
Hits
BetweennessCentrality
EdgeBetweennessCentrality
Sssp
DegreesAll
In-degree and out-degree for every vertex. https://docs.nvidia.com/cugraph/latest/api_docs/cugraph_c/graph/#_CPPv415cugraph_degreesPK25cugraph_resource_handle_tP15cugraph_graph_tPK39cugraph_type_erased_device_array_view_t6bool_tPP24cugraph_degrees_result_tPP15cugraph_error_t
InDegreesAll
OutDegreesAll
WeaklyConnectedComponents
StronglyConnectedComponents
TriangleCountAll
CoreNumber
KCore
MinimumSpanningTree
Leiden
Ecg
Ensemble clustering for graphs. https://docs.nvidia.com/cugraph/latest/api_docs/cugraph_c/community/#_CPPv411cugraph_ecgPK25cugraph_resource_handle_tP19cugraph_rng_state_tP15cugraph_graph_td6size_t6size_tdd6bool_tPP40cugraph_hierarchical_clustering_result_tPP15cugraph_error_t
SpectralModularityMaximization
ForceAtlas2
Jaccard
Explicit-pair Jaccard similarity coefficient. https://docs.nvidia.com/cugraph/latest/api_docs/cugraph_c/similarity/#_CPPv428cugraph_jaccard_coefficientsPK25cugraph_resource_handle_tP15cugraph_graph_tPK22cugraph_vertex_pairs_t6bool_t6bool_tPP27cugraph_similarity_result_tPP15cugraph_error_t
Sorensen
Explicit-pair Sorensen similarity coefficient. https://docs.nvidia.com/cugraph/latest/api_docs/cugraph_c/similarity/#_CPPv429cugraph_sorensen_coefficientsPK25cugraph_resource_handle_tP15cugraph_graph_tPK22cugraph_vertex_pairs_t6bool_t6bool_tPP27cugraph_similarity_result_tPP15cugraph_error_t
Overlap
Explicit-pair overlap similarity coefficient. https://docs.nvidia.com/cugraph/latest/api_docs/cugraph_c/similarity/#_CPPv428cugraph_overlap_coefficientsPK25cugraph_resource_handle_tP15cugraph_graph_tPK22cugraph_vertex_pairs_t6bool_t6bool_tPP27cugraph_similarity_result_tPP15cugraph_error_t
Cosine
Implementations§
Source§impl GraphAlgorithm
impl GraphAlgorithm
Sourcepub const fn is_similarity(self) -> bool
pub const fn is_similarity(self) -> bool
Whether this algorithm is one of the explicit-pair similarity metrics.
Sourcepub fn definition(self) -> &'static GraphOperationDefinition
pub fn definition(self) -> &'static GraphOperationDefinition
Look up the registry definition for this algorithm.
Panics if the algorithm variant lacks a registry entry. The registry is
the single source of truth for algorithm metadata; new
GraphAlgorithm variants must add an entry to
GRAPH_OPERATION_REGISTRY.
Sourcepub fn all() -> impl ExactSizeIterator<Item = Self> + Clone
pub fn all() -> impl ExactSizeIterator<Item = Self> + Clone
All algorithms exposed by the registry, in registry order.
Sourcepub fn consumes_weight(self) -> bool
pub fn consumes_weight(self) -> bool
Whether this algorithm reads edge weights as a semantic input.
When false, a bound weight column is irrelevant to the result and a
null weight must not cause its edge to be dropped from the graph.
Sourcepub fn requires_source_vertex(self) -> bool
pub fn requires_source_vertex(self) -> bool
Whether this algorithm requires a source vertex argument.
Sourcepub fn weight_policy(self) -> GraphWeightPolicy
pub fn weight_policy(self) -> GraphWeightPolicy
Weight-column policy declared by the native graph descriptor.
Sourcepub fn output_schema_kind(self) -> GraphOutputSchemaKind
pub fn output_schema_kind(self) -> GraphOutputSchemaKind
Output-schema shape declared by the native graph descriptor.
Sourcepub fn vertex_id_type_support(self) -> GraphVertexIdTypeSupport
pub fn vertex_id_type_support(self) -> GraphVertexIdTypeSupport
Vertex-id dtype support declared by the native graph descriptor.