WeightedGraph

org.appliedtopology.tda4j.WeightedGraph
See theWeightedGraph companion class
object WeightedGraph

Attributes

Companion
class
Experimental
true
Source
WeightedGraph.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(n: Int, edges: Iterable[(Int, Int, Double)]): WeightedGraph

The graph on 0 until n with the given (a, b, weight) edges, in either direction. Weights are numbers >= 0; an edge listed several times counts at its lightest weight, an edge of weight Infinity is no edge, and a loop (a, a, w) is ignored, since a vertex is at distance 0 from itself.

The graph on 0 until n with the given (a, b, weight) edges, in either direction. Weights are numbers >= 0; an edge listed several times counts at its lightest weight, an edge of weight Infinity is no edge, and a loop (a, a, w) is ignored, since a vertex is at distance 0 from itself.

Attributes

Source
WeightedGraph.scala
def unweighted(n: Int, edges: Iterable[(Int, Int)]): WeightedGraph

The graph on 0 until n with the given edges, every one of weight 1: its flag complex is the clique complex, every simplex entering at 1.

The graph on 0 until n with the given edges, every one of weight 1: its flag complex is the clique complex, every simplex entering at 1.

Attributes

Source
WeightedGraph.scala