m_spanningtree Minor cleanup of functions