Moved basic graph files and related utilities over from Lilian