Graph.xs: Added ahead_behind()