lib/sfrp/mono/node.rb
def last_referred_node_strs(set, visited = {})
        return [] if visited.key?(@str)
        visited[@str] = true
        rec = @node_refs.reject(&:last).flat_map do |r|
          set.node(r.node_str).last_referred_node_strs(set, visited)
        end
        (@node_refs.select(&:last).map(&:node_str) + rec).uniq
      end
# Return a list of (recursively) last-referred nodes.
Return a list of (recursively) last-referred nodes.
Return a list of ( recursively ) last - referred nodes .
def last_referred_node_strs(set, visited = {})
        return [] if visited.key?(@str)
        visited[@str] = true
        rec = @node_refs.reject(&:last).flat_map do |r|
          set.node(r.node_str).last_referred_node_strs(set, visited)
        end
        (@node_refs.select(&:last).map(&:node_str) + rec).uniq
      end
def last_referred_node_strs ( set , visited = { } ) return [ ] if visited . key? ( @str ) visited [ @str ] = true rec = @node_refs . reject ( & :last ) . flat_map do | r | set . node ( r . node_str ) . last_referred_node_strs ( set , visited ) end ( @node_refs . select ( & :last ) . map ( & :node_str ) + rec ) . uniq end
Return a list of (recursively) last-referred nodes.
Return a list of ( recursively ) last - referred nodes .
set
visited