direction from nodes