Elementary Graph Algorithms