Add GraphAlgorithms class