SameLevel in graph