Split up graph, node and ref files
Draw graph with merge better