toGraph

open fun toGraph(): Graph<T>