made arc a pair of Node::Ptrs with arc.first == unode and arc.second == vnode