graph implement go a step further.