finish in layeredcolocationgraph.java