# File lib/rgl/mutable.rb, line 94 94: def cycles 95: g = self.clone 96: self.inject([]) do |acc, v| 97: acc = acc.concat(g.cycles_with_vertex(v)) 98: g.remove_vertex(v); acc 99: end 100: end