summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/graph.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/util/graph.rb')
-rw-r--r--lib/puppet/util/graph.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/puppet/util/graph.rb b/lib/puppet/util/graph.rb
index d1ef36f8e..fc05cafd9 100644
--- a/lib/puppet/util/graph.rb
+++ b/lib/puppet/util/graph.rb
@@ -2,7 +2,7 @@
# Copyright (c) 2006. All rights reserved.
require 'puppet'
-require 'puppet/pgraph'
+require 'puppet/simple_graph'
# A module that handles the small amount of graph stuff in Puppet.
module Puppet::Util::Graph
@@ -12,7 +12,7 @@ module Puppet::Util::Graph
def to_graph(graph = nil, &block)
# Allow our calling function to send in a graph, so that we
# can call this recursively with one graph.
- graph ||= Puppet::PGraph.new
+ graph ||= Puppet::SimpleGraph.new
self.each do |child|
unless block_given? and ! yield(child)