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