adding graph algorithms and CommonProblems