rename method
try to use graph to simuate links