Fix buggy ObjectGraph.complete_subgraph_on_vertices method.

This PR fixes a bug in `ObjectGraph.complete_subgraph_on_vertices`, which was failing to prune the edges appropriately.