Packages

t

firrtl.graph

MutableEdgeData

trait MutableEdgeData[V, E] extends EdgeData[V, E]

Mixing this trait into a DiGraph indicates that each edge may be associated with an optional data value. The MutableEdgeData trait provides an API for viewing and mutating edge data.

V

the vertex type (datatype) of the underlying DiGraph

E

the type of each edge data value

Self Type
MutableEdgeData[V, E] with MutableDiGraph[V]
Source
EdgeData.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MutableEdgeData
  2. EdgeData
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addEdge(u: V, v: V, data: E): Unit

    Add an edge (u,v) to the graph with associated edge data.

    Add an edge (u,v) to the graph with associated edge data.

    u

    the source of the edge

    v

    the destination of the edge

    data

    the edge data to associate with the edge

    Exceptions thrown

    scala.IllegalArgumentException if u or v is not part of the graph

    See also

    MutableDiGraph.addEdge

  5. def addEdgeIfValid(u: V, v: V, data: E): Boolean

    Safely add an edge (u,v) to the graph with associated edge data if and only if both vertices are present in the graph.

    Safely add an edge (u,v) to the graph with associated edge data if and only if both vertices are present in the graph. This is useful for preventing spurious edge creating when examining a subset of possible nodes.

    u

    the source of the edge

    v

    the destination of the edge

    data

    the edge data to associate with the edge

    returns

    a Boolean indicating whether the edge was added

    See also

    MutableDiGraph.addEdgeIfValid

  6. def addPairWithEdge(u: V, v: V, data: E): Unit

    Safely add an edge (u,v) to the graph with associated edge data.

    Safely add an edge (u,v) to the graph with associated edge data. If on or more of the two vertices is not present in the graph, add them before creating the edge.

    u

    the source of the edge

    v

    the destination of the edge

    data

    the edge data to associate with the edge

    See also

    MutableDiGraph.addPairWithEdge

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def assertEdgeExists(u: V, v: V): Unit
    Attributes
    protected
    Definition Classes
    EdgeData
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  10. def edgeData(u: V, v: V): E

    u

    the source of the edge

    v

    the destination of the edge

    returns

    the edge data associated with a given edge

    Definition Classes
    EdgeData
    Exceptions thrown

    EdgeNotFoundException if the edge does not exist

    scala.NoSuchElementException if the edge has no data

  11. val edgeDataMap: Map[(V, V), E]
    Attributes
    protected
    Definition Classes
    MutableEdgeDataEdgeData
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def getEdgeData(u: V, v: V): Option[E]

    Optionally return the edge data associated with a given edge.

    Optionally return the edge data associated with a given edge.

    u

    the source of the edge

    v

    the destination of the edge

    returns

    an option containing the edge data, if any, or None

    Definition Classes
    EdgeData
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def setEdgeData(u: V, v: V, data: E): Unit

    Associate an edge data value with a graph edge.

    Associate an edge data value with a graph edge.

    u

    the source of the edge

    v

    the destination of the edge

    data

    the edge data to associate with the edge

    Exceptions thrown

    EdgeNotFoundException if the edge does not exist in the graph

  22. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

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

    (Since version ) see corresponding Javadoc for more information.

Inherited from EdgeData[V, E]

Inherited from AnyRef

Inherited from Any

Ungrouped