Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find a pair of vertices that are a maximum distance apart on a graph
ResourceFunction["GraphAntipodes"][g] gives a pair of vertices of graph g that have the greatest distance from each other. |
Generate an icosahedral graph:
In[1]:= | ![]() |
Out[1]= | ![]() |
Highlight a pair of vertices that have the greatest graph distance from each other:
In[2]:= | ![]() |
Out[2]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License