m_spanningtree Use vector back() where it makes sense