simple graph builder