Yoorkin/egg/graph does not have a README file
pub struct ENode[Op] { op : Op children : ReadOnlyArray[Id]} derive(Eq, Hash, @moonbitlang/core/debug.DebugDebug)
type Graph[Op, Data]
#alias(new)fn[Op : Hash + Eq, Data] Graph::Graph(make~ : (Op, ReadOnlyArray[Data]) -> Data, join~ : (Data, Data) -> Data, modify? : (Graph[Op, Data], Data) -> Id?) -> Graph[Op, Data]
fn[Op : Hash + Eq, Data] Graph::add_node(self : Graph[Op, Data], op : Op, children? : ArrayView[Id]) -> Id
fn[Op, Data] Graph::allocated_node_count(self : Graph[Op, Data]) -> Int
fn[Op, Data] Graph::class_count(self : Graph[Op, Data]) -> Int
fn[Op, Data] Graph::data(self : Graph[Op, Data], id : Id) -> Data
fn[Op : Hash + Eq, Data : Eq, Tree] Graph::extract(self : Graph[Op, Data], root : Id, weight : (Op) -> UInt64, build : (Op, ArrayView[Tree]) -> Tree) -> (UInt64, Tree)?
fn[Op : Hash + Eq, Data : Eq, Tree] Graph::extract_with_cost(self : Graph[Op, Data], root : Id, local_cost : (Op, ArrayView[UInt64]) -> UInt64?, build : (Op, ArrayView[Tree]) -> Tree) -> (UInt64, Tree)?
fn[Op, Data] Graph::find(self : Graph[Op, Data], id : Id) -> Id
fn[Op, Data : Eq] Graph::merge(self : Graph[Op, Data], left : Id, right : Id) -> Bool
fn[Op, Data] Graph::node_count(self : Graph[Op, Data]) -> Int
fn[Op, Data] Graph::nodes(self : Graph[Op, Data], id : Id) -> ReadOnlyArray[ENode[Op]]
fn[Op : Hash + Eq, Data : Eq] Graph::rebuild(self : Graph[Op, Data]) -> Unit
type Id derive(Eq, Hash, @moonbitlang/core/debug.DebugDebug)
pub(all) enum Pattern[Op] { Variable(String) Node(Op, ReadOnlyArray[Pattern[Op]])}
fn[Op : Eq, Data] Pattern::visit_matches(self : Pattern[Op], graph : Graph[Op, Data], visit : (Id, Map[String, Id]) -> Unit) -> Unit
Install
Equality saturation with e-graphs
No dependencies
No dependents