You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: mutable.rb
    path of file: ./repos/rgl/lib/rgl
    
    the code of the file until where you have to start completion: # mutable.rb

require 'rgl/base'

module RGL

  # A MutableGraph can be changed via the addition or removal of edges and
  # vertices.
  #
  module M
    
    def cycles_with_vertex_helper(vertex, start, visited)
      adjacent_vertices(start).reject { |x| visited.include?(x) }.inject([]) do |acc, adj|
        local_visited = Array.new(visited) << adj
        acc << local_visited if (adj==vertex)
        acc = acc + cycles_with_vertex_helper(vertex, adj, local_visited)
      end
    end