updated core algorithm (not working)
fix graph-edge data