m_spanningtree Fix clang warning and wrong operator in if