m_spanningtree Use vector back() where it makes sense
Remove unused #define ERROR -1