commonMain.io.github.alexandrepiveteau.graphs.DirectedGraph.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-graphs Show documentation
Show all versions of kotlin-graphs Show documentation
Model directed, undirected, weighted and unweighted graphs and perform computations on them in Kotlin multiplatform.
package io.github.alexandrepiveteau.graphs
/** A [DirectedGraph] is a [Graph] where [Vertex]s are linked using [Arc]s. */
public interface DirectedGraph : Graph {
/** Returns true if the given [arc] is contained in this [DirectedGraph], and false otherwise. */
public operator fun contains(arc: Arc): Boolean
/**
* An object which serves as the companion of [DirectedGraph], and which provides a number of
* factory methods to create [DirectedGraph]s.
*/
public companion object
}