toMap

Transforms the multimap into a mapping of paths to lists of values associated with them.