N - node classE - edge classNP - node property classEP - edge property class@ParametersAreNonnullByDefault public interface MutableGraph<N,E,NP,EP> extends UniversalGraph<N,E,NP,EP>
ShrinkableGraph is the adequate interface.| 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) |
getGraphDOTHelper, getNodes, iterator, nodeIDs, sizeforEach, spliteratorgetEdgeProperty, getNodePropertycreateDynamicNodeMapping, createStaticNodeMapping, getEdgesBetween, getOutgoingEdges, getTarget@Nonnull default N addNode()
addNode(Object) with
a null parameter.@Nonnull N addNode(@Nullable NP property)
property - the property for the new node@Nonnull default E connect(N source, N target)
connect(Object, Object, Object) with a null
property value.source - the source nodetarget - the target node@Nonnull E connect(N source, N target, @Nullable EP property)
source - the source node of the edgetarget - the target node of the edgeproperty - the property of the edgeCopyright © 2015. All rights reserved.