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.Modifier and Type | Method and Description |
---|---|
N |
addNode()
Adds a new node with default properties to the graph.
|
N |
addNode(NP property)
Adds a new node to the graph.
|
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) |
forEach, iterator, spliterator
getEdgeProperty, getNodeProperty
createDynamicNodeMapping, createStaticNodeMapping, getOutgoingEdges, getTarget
N addNode()
addNode(Object)
with
a null
parameter.N addNode(NP property)
property
- the property for the new nodeE 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 edgevoid setNodeProperty(N node, NP property)
void setEdgeProperty(E edge, EP property)
Copyright © 2015. All Rights Reserved.