Move Graph::isBalanced() to Algorithm\Degree