Eulerian paths and circuits in graphs and digraphs