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