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

breeze.optimize.flow.FlowGraph.scala Maven / Gradle / Ivy

package breeze.optimize.flow

/**
 * 
 * @author dlwh
 */
trait FlowGraph[N] {
  def source: N
  def sink: N
  def edgesFrom(n: N):Iterator[Edge]
  trait Edge {
    def capacity: Double = Double.PositiveInfinity
    def cost: Double = 0.0
    def gain: Double = 1.0
    def head: N
    def tail: N
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy