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