graph: use enum Direction