dgraph_leaves/3

dgraph_leaves(+ Graph, ? Vertices)*

The vertices Vertices have no outgoing edge in graph Graph.