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.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, getVisualizationHelpergetNodes, iterator, nodeIDs, nodesStream, sizeforEach, spliteratorgetEdgeProperty, getNodePropertyadjacentTargetsIterator, adjacentTargetsStream, getAdjacentTargets, getEdgesBetween, getOutgoingEdges, getTarget, outgoingEdges, outgoingEdgesIterator, outgoingEdgesStreamadjacentTargets, createDynamicNodeMapping, createStaticNodeMapping, isConnected@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 © 2018. All rights reserved.