Defined hash also for DirectedEdge