Add direction for showing graph