Create and solve a dependency tree.