Packages

case class WDiGraph[T](vertices: Set[Node[T]], edges: Set[WDiEdge[Node[T]]]) extends WeightedGraph[T, WDiEdge[Node[T]]] with Product with Serializable

Represents a weighted directed graph.

T

The type of nodes in the graph.

vertices

The set of vertices of the graph.

edges

The set of weighted edges of the graph.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WDiGraph
  2. Serializable
  3. Product
  4. Equals
  5. WeightedGraph
  6. Graph
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new WDiGraph(vertices: Set[Node[T]], edges: Set[WDiEdge[Node[T]]])

    vertices

    The set of vertices of the graph.

    edges

    The set of weighted edges of the graph.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +[X](_edges: Set[WDiEdge[Node[T]]])(implicit arg0: ClassTag[X]): WDiGraph[T]

    Add a set of edges to the graph.

    Add a set of edges to the graph.

    This will also add vertices if any of the edges contains vertices not yet present in the graph.

    X

    ClassTag parameter to ensure generic type is not erased.

    _edges

    The set of edges to be added.

    returns

    The graph with the added edges (and vertices).

    Definition Classes
    WDiGraphGraph
  4. def +(edge: WDiEdge[Node[T]]): WDiGraph[T]

    Add an edge to the graph.

    Add an edge to the graph.

    This will also add vertices if the edge contains vertices not yet present in the graph.

    edge

    The edge to be added.

    returns

    The graph with the added edge (and vertices).

    Definition Classes
    WDiGraphGraph
  5. def +(_vertices: Set[Node[T]]): WDiGraph[T]

    Add a set of vertices to the graph.

    Add a set of vertices to the graph.

    _vertices

    The vertices to be added.

    returns

    The graph with the added vertices.

    Definition Classes
    WDiGraphGraph
  6. def +(vertex: Node[T]): WDiGraph[T]

    Add a vertex to the graph.

    Add a vertex to the graph.

    vertex

    The vertex to be added.

    returns

    The graph with the added vertex.

    Definition Classes
    WDiGraphGraph
  7. def -[X](_edges: Set[WDiEdge[Node[T]]])(implicit arg0: ClassTag[X]): WDiGraph[T]

    Remove a set of edges from the graph.

    Remove a set of edges from the graph.

    Edges that are not part of the graph will are ignored.

    X

    ClassTag parameter to ensure generic type is not erased.

    _edges

    The edges to be removed.

    returns

    The graph minus the edges.

    Definition Classes
    WDiGraphGraph
  8. def -(edge: WDiEdge[Node[T]]): WDiGraph[T]

    Remove an edge from the graph.

    Remove an edge from the graph.

    If the edge is not part of the graph this function does nothing.

    edge

    The edge to be removed.

    returns

    The graph minus the edge.

    Definition Classes
    WDiGraphGraph
  9. def -(_vertices: Set[Node[T]]): WDiGraph[T]

    Remove a set of vertices from the graph.

    Remove a set of vertices from the graph.

    Any edges connected to any of the vertices will also be removed. Vertices that are not part of the graph are ignored.

    _vertices

    The vertices to be removed.

    returns

    The graph minus the vertices and mines edges that were connected.

    Definition Classes
    WDiGraphGraph
  10. def -(vertex: Node[T]): WDiGraph[T]

    Remove a vertex from the graph.

    Remove a vertex from the graph.

    Any edges connected to this vertex will also be removed. If the vertex is not part of the graph, this function returns the original graph.

    vertex

    The vertex to be removed.

    returns

    The graph minus the vertex and mines edges that were connected.

    Definition Classes
    WDiGraphGraph
  11. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. lazy val adjacencyList: Map[Node[T], Set[NodeWeightPair[T]]]

    The adjacency list for this graph, represented as a mapping from nodes to a set of neighboring nodes with associated weights.

    The adjacency list for this graph, represented as a mapping from nodes to a set of neighboring nodes with associated weights. This is lazily (only when called) evaluated.

    Definition Classes
    WeightedGraph
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  15. def containsCycle: Boolean

    Recursively checks if the graph contains a cycle.

    Recursively checks if the graph contains a cycle.

    returns

    true if the graph contains a cycle, false otherwise.

    Definition Classes
    WeightedGraphGraph
  16. val edges: Set[WDiEdge[Node[T]]]
    Definition Classes
    WDiGraphWeightedGraphGraph
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  19. def isEmpty: Boolean

    Tests if the graph contains any vertices.

    Tests if the graph contains any vertices.

    returns

    true if the graph contains no vertices, false otherwise.

    Definition Classes
    Graph
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def merge[G <: Graph[T, WDiEdge[Node[T]]]](that: G): WDiGraph[T]

    Merge two graphs of the same type.

    Merge two graphs of the same type.

    G

    The type of the graph to be merged (same as this type).

    that

    The graph to be merged with this graph.

    returns

    The merged graph.

    Definition Classes
    WDiGraphGraph
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def noEdges: Boolean

    Tests if the graph contains any edges.

    Tests if the graph contains any edges.

    returns

    true if the graph no edges, false otherwise.

    Definition Classes
    Graph
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  26. def nthAdjacencyList(n: Int): Map[Node[T], Set[NodeWeightPair[T]]]

    Recursively computes the nth adjacency list.

    Recursively computes the nth adjacency list.

    n

    The required level.

    returns

    The nth adjacency list.

    Definition Classes
    WeightedGraph
  27. def productElementNames: Iterator[String]
    Definition Classes
    Product
  28. def productIterator: Iterator[Any]
    Definition Classes
    Product
  29. def size: Int

    Returns the number of vertices in the graph.

    Returns the number of vertices in the graph.

    returns

    The number of vertices in the graph.

    Definition Classes
    Graph
  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. val vertices: Set[Node[T]]
    Definition Classes
    WDiGraphWeightedGraphGraph
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from WeightedGraph[T, WDiEdge[Node[T]]]

Inherited from Graph[T, WDiEdge[Node[T]]]

Inherited from AnyRef

Inherited from Any

Ungrouped