Implemented graph visualisation for layout.