Skip to main content

GraphAlgorithm

Trait GraphAlgorithm 

Source
pub trait GraphAlgorithm: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn description(&self) -> &str;
    fn parameters(&self) -> &[ParameterDef];
    fn execute(
        &self,
        store: &LpgStore,
        params: &Parameters,
    ) -> Result<AlgorithmResult>;
}
Expand description

A graph algorithm that can be executed on an LPG store.

This trait extends the base Algorithm trait with graph-specific functionality, providing direct access to the graph store.

Required Methods§

Source

fn name(&self) -> &str

Returns the name of the algorithm.

Source

fn description(&self) -> &str

Returns a description of the algorithm.

Source

fn parameters(&self) -> &[ParameterDef]

Returns the parameter definitions for this algorithm.

Source

fn execute( &self, store: &LpgStore, params: &Parameters, ) -> Result<AlgorithmResult>

Executes the algorithm on the given graph store.

Implementors§