hashing, modifying pq
parent
933de885cd
commit
433cbc349a
@ -0,0 +1,40 @@
|
|||||||
|
use std::collections::BTreeMap;
|
||||||
|
|
||||||
|
use anyhow::Result;
|
||||||
|
|
||||||
|
use crate::algo::AlgoImpl;
|
||||||
|
use crate::data::expr::Expr;
|
||||||
|
use crate::data::program::{MagicAlgoRuleArg, MagicSymbol};
|
||||||
|
use crate::data::symb::Symbol;
|
||||||
|
use crate::runtime::derived::DerivedRelStore;
|
||||||
|
use crate::runtime::transact::SessionTx;
|
||||||
|
|
||||||
|
pub(crate) struct ClusteringCoefficient;
|
||||||
|
|
||||||
|
impl AlgoImpl for ClusteringCoefficient {
|
||||||
|
fn run(
|
||||||
|
&mut self,
|
||||||
|
tx: &mut SessionTx,
|
||||||
|
rels: &[MagicAlgoRuleArg],
|
||||||
|
opts: &BTreeMap<Symbol, Expr>,
|
||||||
|
stores: &BTreeMap<MagicSymbol, DerivedRelStore>,
|
||||||
|
out: &DerivedRelStore,
|
||||||
|
) -> Result<()> {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
pub(crate) struct Triangles;
|
||||||
|
|
||||||
|
impl AlgoImpl for Triangles {
|
||||||
|
fn run(
|
||||||
|
&mut self,
|
||||||
|
tx: &mut SessionTx,
|
||||||
|
rels: &[MagicAlgoRuleArg],
|
||||||
|
opts: &BTreeMap<Symbol, Expr>,
|
||||||
|
stores: &BTreeMap<MagicSymbol, DerivedRelStore>,
|
||||||
|
out: &DerivedRelStore,
|
||||||
|
) -> Result<()> {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue