N
- node classE
- edge classNP
- node property classEP
- edge property classpublic interface MutableGraph<N,E,NP,EP> extends UniversalGraph<N,E,NP,EP>
ShrinkableGraph
is the adequate interface.SimpleGraph.NormalGraphView<N,G extends SimpleGraph<N>>
Modifier and Type | Method and Description |
---|---|
default N |
addNode()
Adds a new node with default properties to the graph.
|
N |
addNode(NP property)
Adds a new node to the graph.
|
default E |
connect(N source,
N target)
Inserts an edge in the graph, with the default property.
|
E |
connect(N source,
N target,
EP property)
Inserts an edge in the graph.
|
void |
setEdgeProperty(E edge,
EP property) |
void |
setNodeProperty(N node,
NP property) |
asNormalGraph, getVisualizationHelper
getNodes, iterator, nodeIDs, nodesStream, size
forEach, spliterator
getEdgeProperty, getNodeProperty
adjacentTargetsIterator, adjacentTargetsStream, getAdjacentTargets, getEdgesBetween, getOutgoingEdges, getTarget, outgoingEdges, outgoingEdgesIterator, outgoingEdgesStream
adjacentTargets, createDynamicNodeMapping, createStaticNodeMapping, isConnected
default N addNode()
addNode(Object)
with a null
parameter.N addNode(NP property)
property
- the property for the new nodedefault E connect(N source, N target)
connect(Object, Object, Object)
with a null
property value.source
- the source nodetarget
- the target nodeE connect(N source, N target, EP property)
source
- the source node of the edgetarget
- the target node of the edgeproperty
- the property of the edgeCopyright © 2020. All rights reserved.