| 1 | initial version |
From your question I have no idea of what you are looking for..
May it be the diameter of a graph ? http://en.wikipedia.org/wiki/Distance_(graph_theory) Or its longest path ? http://en.wikipedia.org/wiki/Longest_path_problem
One is very easily solved, the other one is NP Hard. And Sage knows how to do both.
Nathann
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.