Add API to compute the graph of dependencies of a formula.