public interface MutableEdgeLabelledDirectedGraph extends DirectedGraph
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(java.lang.Object from,
java.lang.Object to,
java.lang.Object label)
Adds an edge to the graph between 2 nodes.
|
void |
addNode(java.lang.Object node)
Adds a node to the graph.
|
boolean |
containsAnyEdge(java.lang.Object label) |
boolean |
containsAnyEdge(java.lang.Object from,
java.lang.Object to) |
boolean |
containsEdge(java.lang.Object from,
java.lang.Object to,
java.lang.Object label) |
boolean |
containsNode(java.lang.Object node) |
MutableDirectedGraph |
getEdgesForLabel(java.lang.Object label)
Returns a MutableDirectedGraph consisting of
all edges with the given label and their nodes.
|
java.util.List<java.lang.Object> |
getLabelsForEdges(java.lang.Object from,
java.lang.Object to)
Returns a list of labels for which an edge exists between from and to
|
java.util.List<java.lang.Object> |
getNodes() |
void |
removeAllEdges(java.lang.Object label)
Removes all edges with the given label in the graph.
|
void |
removeAllEdges(java.lang.Object from,
java.lang.Object to)
Removes all edges between 2 nodes in the graph.
|
void |
removeEdge(java.lang.Object from,
java.lang.Object to,
java.lang.Object label)
Removes an edge between 2 nodes in the graph.
|
void |
removeNode(java.lang.Object node)
Removes a node from the graph.
|
getHeads, getPredsOf, getSuccsOf, getTails, iterator, sizevoid addEdge(java.lang.Object from,
java.lang.Object to,
java.lang.Object label)
from - out node for the edge.to - in node for the edge.label - label for the edge.java.util.List<java.lang.Object> getLabelsForEdges(java.lang.Object from,
java.lang.Object to)
from - out node for the edges to remove.to - in node for the edges to remove.MutableDirectedGraph getEdgesForLabel(java.lang.Object label)
label - label for the edge to remove.void removeEdge(java.lang.Object from,
java.lang.Object to,
java.lang.Object label)
from - out node for the edges to remove.to - in node for the edges to remove.label - label for the edge to remove.void removeAllEdges(java.lang.Object from,
java.lang.Object to)
from - out node for the edges to remove.to - in node for the edges to remove.void removeAllEdges(java.lang.Object label)
label - label for the edge to remove.boolean containsEdge(java.lang.Object from,
java.lang.Object to,
java.lang.Object label)
boolean containsAnyEdge(java.lang.Object from,
java.lang.Object to)
from - out node for the edges.to - in node for the edges.boolean containsAnyEdge(java.lang.Object label)
label - label for the edges.java.util.List<java.lang.Object> getNodes()
void addNode(java.lang.Object node)
node - a node to add to the graph.DirectedGraph.getHeads(),
DirectedGraph.getTails()void removeNode(java.lang.Object node)
node - the node to be removed.boolean containsNode(java.lang.Object node)
node - node that we want to know if the graph constains.Copyright © 2012-2019 RoboVM AB. All Rights Reserved.