Layered graph