How to see the source code of the function distance_graph
I noticed the documentation for the distance_graph function, and I wanted to view its source code.
However, when I tried to run ? graphs.distance_graph
, it didn't work.
So, I searched for it on Sage's GitHub repository. I came across this line: :meth:sage.graphs.generic_graph.distance_graph
for diameter distance. However, I still couldn't find the relevant description in the file sage.graphs.generic_graph. Or running ? graphs.generic_graph.distance_graph
also does not work.
How can I locate its implementation?