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§
Sourcefn description(&self) -> &str
fn description(&self) -> &str
Returns a description of the algorithm.
Sourcefn parameters(&self) -> &[ParameterDef]
fn parameters(&self) -> &[ParameterDef]
Returns the parameter definitions for this algorithm.
Sourcefn execute(
&self,
store: &LpgStore,
params: &Parameters,
) -> Result<AlgorithmResult>
fn execute( &self, store: &LpgStore, params: &Parameters, ) -> Result<AlgorithmResult>
Executes the algorithm on the given graph store.