pub trait Algorithm: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn description(&self) -> &str;
fn parameters(&self) -> &[ParameterDef];
fn execute(&self, params: &Parameters) -> Result<AlgorithmResult>;
}Expand description
A graph algorithm that can be invoked from queries.
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.