# File lib/puppet/simple_graph.rb, line 139
139:   def leaves(vertex, direction = :out)
140:     tree = tree_from_vertex(vertex, direction)
141:     l = tree.keys.find_all { |c| adjacent(c, :direction => direction).empty? }
142:   end