Default edge direction should be 0 not nil