Sha256: 000ae78aaa81b6abab6da17a6b55a0b4b409719f1abe2a57ce78325e7706832a
Contents?: true
Size: 498 Bytes
Versions: 50
Compression:
Stored size: 498 Bytes
Contents
require 'tsort' module Datadog module Configuration # Resolver performs a topological sort over the dependency graph class DependencyResolver include TSort def initialize(dependency_graph = {}) @dependency_graph = dependency_graph end def tsort_each_node(&blk) @dependency_graph.each_key(&blk) end def tsort_each_child(node, &blk) @dependency_graph.fetch(node).each(&blk) end alias call tsort end end end
Version data entries
50 entries across 50 versions & 2 rubygems