Fixed bug 10222.

Formerly, root_map stored a reference to the "parent" in the spanning tree of the connected component. While this is also interesting (and could be used to compute the root), this is not what the docu claims is computed. (I'm working on a variant that records the forward/backward paths within a component.)