JAVA:实现Cycles类算法 package com.thealgorithms.datastructures.graphs; import java.util.ArrayList; import java.util.Scanner