matsengrp / historydag

https://matsengrp.github.io/historydag
GNU General Public License v3.0
0 stars 1 forks source link

Count optimal histories #56

Closed willdumm closed 1 year ago

willdumm commented 1 year ago

In addition to some minor improvements, this PR implements a method to count the number of optimal histories without trimming. This is far more efficient than the alternative, which involved making a full copy of the DAG. The count can be computed in a single postorder traversal.