fun <T> Map<T, T>.mapParents(child: T): LinkedHashSet<T>
It is assumed that the Map represents a child parent relation where this function returns a LinkedHashSet with all collected parents.
A key represent a child and the value its parent.
Return
The collected parents in order.