public DigraghCycle(Digragh g) { dfs = new CycleDFS(g); }
public bool HasCycle() { var dfs = new CycleDFS(g); return dfs.HasCycle(); }