Querying for leaf nodes using libgraph?

The only thing I can say is that both of these projects should work very good just based on the fact that the first is made by @bitwalker and the second is part of OTP. I guess the biggest difference should be the fact that libgraph is more elixir friendly, as from libgraph readme:

An idiomatic Elixir API for creating, modifying, and querying its graph structure. Creating and modifying a graph can be done in a single pipeline, and all queries take a Graph as their first parameter (one of my complaints with :digraph is that there is some inconsistency with the API between :digraph and :digraph_utils for no apparent reason).