Added pagmo_throw instead of std::exception throw for check_matrix function.
Added condition to check if main diagonal is 0.
also checks if matrix is square and fully connected.
Fixed conditions for main diagonal check and fully connected checks.
removed tests for this function