merge graph code into measure project