april-tools / cirkit

a python framework to build, learn and reason about probabilistic circuits and tensor networks
https://cirkit-docs.readthedocs.io/en/latest/
GNU General Public License v3.0
71 stars 1 forks source link

Introduce topological ordering to RG #165

Closed lkct closed 10 months ago

lkct commented 10 months ago

This PR introduced two new util classes:

This PR also changed the comparison of RGNode, so that topo sort can be very easily done.

TODO: not yet added ordering to SymbC. Possible issues: See #164.