All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.github.alexandrepiveteau.graphs.UndirectedGraph.kt Maven / Gradle / Ivy

Go to download

Model directed, undirected, weighted and unweighted graphs and perform computations on them in Kotlin multiplatform.

There is a newer version: 0.6.1
Show newest version
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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy