Map<T, List<T>> toMapOfValues() => map( (key, l) => MapEntry(key.value, l.map((node) => node.value).toList()));