Method: CPEE::ProcessTransformation::Traces#find_endnode
- Defined in:
- lib/cpee/processtransformation/structures.rb
#find_endnode ⇒ Object
425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 |
# File 'lib/cpee/processtransformation/structures.rb', line 425 def find_endnode # supress loops trcs = self.dup # dangerous TODO trcs.delete_if { |t| t.uniq.length < t.length } # find common node (except loops) enode = nil unless trcs.empty? trcs.first.each do |n| if trcs.include_in_all?(n) enode = n break end end end enode end |