toString

open override fun toString(): String

Returns a string representation of the graph, showing which nodes each node is connected to.