commonMain.io.github.alexandrepiveteau.graphs.UndirectedGraph.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 [UndirectedGraph] is a [Graph] where [Vertex]s are linked using [Edge]s. */
public interface UndirectedGraph : Graph {
/**
* Returns true if the given [edge] is contained in this [UndirectedGraph], and false otherwise.
*/
public operator fun contains(edge: Edge): Boolean
/**
* An object which serves as the companion of [UndirectedGraph], and which provides a number of
* factory methods to create [UndirectedGraph]s.
*/
public companion object
}