booster / com.didiglobal.booster.graph / Graph / Builder

Builder

class Builder<N : Node>

Constructors

<init>

Builder()

Functions

addEdge

fun addEdge(edge: Edge<N>): Builder<N>
fun addEdge(from: N, to: N): Builder<N>

addEdges

fun addEdges(from: N, to: Iterable<N>): Builder<N>
fun addEdges(chain: Iterable<N>): Builder<N>

build

fun build(): Graph<N>

getTitle

fun getTitle(): String

hasEdge

fun hasEdge(edge: Edge<N>): Boolean
fun hasEdge(from: N, to: N): Boolean

setTitle

fun setTitle(title: String): Builder<N>