Add an edge (u,v) to the graph with associated edge data.
Add an edge (u,v) to the graph with associated edge data.
the source of the edge
the destination of the edge
the edge data to associate with the edge
scala.IllegalArgumentException
if u or v is not part of 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.
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.
the source of the edge
the destination of the edge
the edge data to associate with the edge
a Boolean indicating whether the edge was added
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.
the source of the edge
the destination of the edge
the edge data to associate with the edge
the source of the edge
the destination of the edge
the edge data associated with a given edge
EdgeNotFoundException
if the edge does not exist
scala.NoSuchElementException
if the edge has no data
Optionally return the edge data associated with a given edge.
Optionally return the edge data associated with a given edge.
the source of the edge
the destination of the edge
an option containing the edge data, if any, or None
Associate an edge data value with a graph edge.
Associate an edge data value with a graph edge.
the source of the edge
the destination of the edge
the edge data to associate with the edge
EdgeNotFoundException
if the edge does not exist in the graph
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.
the vertex type (datatype) of the underlying DiGraph
the type of each edge data value