codeql/python-all
3.1.2-dev
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)