Build a dependency graph that shows the dependency between LEGO bircks