added topology directive and initial code for a layered layouter.