orientEdges function

Assign edge orientation of an undirected graph