hastebrot
05/22/2016, 12:21 PMMap<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):
adjacencyList.keys.forEach { graph.addVertex(it) }
adjacencyList.flatMap { entry -> entry.value.map { value -> entry.key to value } }.forEach {
graph.addEdge(it.first, it.second)
}