srtree-2.0.0.0: A general library to work with Symbolic Regression expression trees.
Copyright(c) Fabricio Olivetti 2021 - 2024
LicenseBSD3
Maintainerfabricio.olivetti@gmail.com
Stabilityexperimental
Portability
Safe HaskellSafe-Inferred
LanguageHaskell2010

Algorithm.EqSat.Queries

Description

Query functions for e-graphs Heavily based on hegg (https:/github.comalt-romes/hegg by alt-romes)

Synopsis

Documentation

findRootClasses :: Monad m => EGraphST m [EClassId] Source #

returns all the root e-classes (e-class without parents)

getTopECLassThat :: Monad m => Int -> (EClass -> Bool) -> EGraphST m [EClassId] Source #

returns the e-class id with the best fitness that is true to a predicate