Object

net.walend.disentangle.examples

DijkstraLeastWeightsExample

Related Doc: package examples

Permalink

object DijkstraLeastWeightsExample

Use Dijkstra's algorithms to find either single-source or all-pairs shortest paths using a custom semiring, LeastWeights.

Since

v0.2.0

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DijkstraLeastWeightsExample
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. lazy val edges: Seq[(String, String, String)]

    Permalink

    Edges are just a Seq of Tuple3[Node,Node,Edge]

  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. lazy val initialLabelDigraph: IndexedLabelDigraph[String, Label]

    Permalink

    To get all shortest paths from a single source (or sink), first create the initial label digraph.

    To get all shortest paths from a single source (or sink), first create the initial label digraph. You'll want to reuse this graph for different sources and sinks.

  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. lazy val labelDigraph: AdjacencyLabelDigraph[String, Label]

    Permalink

    The helper methods in AllPathsFirstSteps need a directed graph.

    The helper methods in AllPathsFirstSteps need a directed graph. Use AllPathsFirstSteps.semiring's annihilator - None - for noEdgeExistsValue.

  15. lazy val labelForEdge: (String, String, String) ⇒ Label

    Permalink

    Build on AllPathsFirstSteps' convert method

  16. lazy val leastPathLabels: Seq[(String, String, Label)]

    Permalink

    Generate the first steps for all paths in the graph

  17. lazy val leastPathLabelsFromPar: ParSeq[(String, String, Label)]

    Permalink

    Generate the first steps for all paths in the graph in parallel

  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. lazy val paths: Seq[Seq[InnerNodeType]]

    Permalink

    Or just get the shortest paths

  22. lazy val shortPathLabelsFromA: Seq[(String, String, Label)]

    Permalink

    Use the initialLabelDigraph to create the labels for the shortest paths from the source

  23. def stringToDouble(fromNode: String, toNode: String, edge: String): Double

    Permalink

    This time, we'll need to supply a function that can convert from a String to a Double to build up the initial graph of edges.

    This time, we'll need to supply a function that can convert from a String to a Double to build up the initial graph of edges. You'll probably have something more significant than this hack.

  24. lazy val subgraph: Set[InnerEdgeType]

    Permalink

    Get a subgraph that holds all the possible shortest paths

  25. lazy val support: AllPathsFirstSteps[String, Double, Double]

    Permalink

    A semiring support instance that uses double-valued labels to find the shortest paths.

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped