Sage has longest_path
. Do we have a command to find the longest cycle? And an induced cycle is a cycle that is an induced subgraph of $G$; induced cycles are also called chordless cycles. Then Do we have a function to find the longest induced cycle?