added simple graph layouting