Simpler test for dependency graph.
We do not handle circular references which are very often for variants.
Better naming.