interface ArrowValuedGraphBase.Builder<N,V,Tp>
undocumented
Extends: ValuedGraphBase.Builder<N,V,Tp>
Type parameters
Name | Constraints | Default | Description |
---|---|---|---|
N | undocumented | ||
V | undocumented | ||
Tp | ArrowValuedGraphBase.Types | ArrowValuedGraphBase.Types | undocumented |
Properties
connectionSize
Returns the amount of connections in the graph.
connectionSize
context
Returns the context
associated to this collection instance.
context
context
associated to this collection instance.isEmpty
Returns true if there are no entries in the builder.
isEmpty
nodeSize
Returns the amount of nodes in the graph.
nodeSize
Methods
addGraphElement
Adds the given element
graph element to the graph.
addGraphElement
element
graph element to the graph.addGraphElements
Adds the graph elements in the given elements
StreamSource to the graph.
addGraphElements
elements
StreamSource to the graph.addNode
Adds the given node
to the graph.
addNode
node
to the graph.addNodes
Adds the given nodes
to the builder.
addNodes
nodes
to the builder.build
Returns an immutable graph containing the nodes and connections of this builder.
build
buildMapValues
Returns an immutable graph containing the nodes and connections of this builder, where the values are mapped using the given mapFun
function.
buildMapValues
mapFun
function.connect
Adds a connection between node1
and node2
to the graph with given value
.
connect
node1
and node2
to the graph with given value
.connectAll
Adds the connections in given connections
StreamSource
to the graph.
connectAll
connections
StreamSource
to the graph.disconnect
Removes the connection between given node1
and node2
if the connection was present.
disconnect
node1
and node2
if the connection was present.disconnectAll
Removes all connections from the given connections
StreamSource
from the graph.
disconnectAll
connections
StreamSource
from the graph.getValue
Returns the value associated with the connection between node1
and node2
, or given otherwise
value if the key is not in the collection.
getValue
node1
and node2
, or given otherwise
value if the key is not in the collection.hasConnection
Returns true if the graph has a connection between given nodes node1
and node2
.
hasConnection
node1
and node2
.hasNode
Returns true if the graph contains the given node
.
hasNode
node
.modifyAt
Modifies the graph at the connection between given node1
and node2
modified according to given options
.
modifyAt
node1
and node2
modified according to given options
.removeNode
Removes the given node
, and any of its connections, from the graph.
removeNode
node
, and any of its connections, from the graph.removeNodes
Removes the given nodes
, and any of their connections, from the graph.
removeNodes
nodes
, and any of their connections, from the graph.