modifyed graph node construction