upgrade createGraph
identation