graph conversion to npy add for buildgraph