codeql/python-all
2.1.1
For other CodeQL resources, including tutorials and examples, see the CodeQL documentation
.
Gets the shortest distance from the root to nd in the API graph.
nd
import semmle.python.ApiGraphs
int distanceFromRoot(TApiNode nd)