class Graph<N : Node> : Iterable<Edge<N>>
Represents a graph
Author
johnsonlee
Builder |
class Builder<N : Node> |
nodes |
val nodes: Collection<N> |
title |
val title: String |
get |
operator fun get(from: N): Set<N> |
getPredecessors |
fun getPredecessors(node: N): Set<N> |
getSuccessors |
fun getSuccessors(node: N): Set<N> |
iterator |
fun iterator(): Iterator<Edge<N>> |
|
Print this graph fun print(out: PrintWriter = PrintWriter(System.out, true), transform: (Graph<N>) -> CharSequence): Unit |
reversed |
fun reversed(): Graph<N> |