I could also do fancy stuff and convert the `Map&l...
# announcements
h
I could also do fancy stuff and convert the
Map<T, List<T>>
to
Iterable<Pair<T, T>>
but it doesn't help me, to get the variables more readable (a lot of
it
and no destructuring):
Copy code
adjacencyList.keys.forEach { graph.addVertex(it) }
adjacencyList.flatMap { entry -> entry.value.map { value -> entry.key to value } }.forEach {
    graph.addEdge(it.first, it.second)
}