Initial commit of graph code