write graph as one treemap