Merge rest of graph code.