   }
 
 
-  private func checkGraphCyclesVertices(cycles: Set<Cycle>) -> Bool {
+  private func checkGraphCyclesVertices(cycles: [Cycle]) -> Bool {
     var successful: Bool = true
     for cycle in cycles {
       assert(cycle.vertexIndices.count >= 1)

    reachableIndices = Array(repeating: [], count: graph.vertices.count)
  }

  fileprivate func findAllCycles() -> Set<Cycle> {
    findAllReachableIndices()

    result = []

    return successful
  }

  private func checkGraphCyclesEdges(cycles: [Cycle]) -> Bool {
    var successful: Bool = true
    for cycle in cycles {
      assert(cycle.edges.count >= 1)
