Method: CPEE::ProcessTransformation::Traces#loops

Defined in:
lib/cpee/processtransformation/structures.rb

#loopsObject



356
357
358
359
360
361
362
# File 'lib/cpee/processtransformation/structures.rb', line 356

def loops
  lo = Traces.new self.find_all{ |t| t.first == t.last }
  self.each do |t|
    lo << t if lo.second_nodes.include?(t[1])
  end
  lo.uniq
end