79315515

Date: 2024-12-29 11:48:08
Score: 1
Natty:
Report link

SageMath has a function longest_path to do that.

sage: g = graphs.PetersenGraph()
sage: lp = g.longest_path(0,3)
print(len(lp.edges()))

9

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: licheng