Rgraphum hash to real hash and module

recode to hash and some fix
need refact in_edges and out_edges