use tables to layout the graph