Edge

constructor(from: Node, to: Node, routes: List<Route> = emptyList())


constructor(from: Node, to: Node, route: Route?)

Builds an edge selected by a single route, or an unconditional one when route is null.