public interface Layer<N extends Node,R extends Relation<N,N>> extends IdentifiableElement
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(N node)
Adds the passed node to this layer.
|
void |
addRelation(Relation<? extends N,? extends N> relation)
Adds the passed relation to this layer.
|
Graph |
getGraph()
Returns the container graph of this node.
|
Set<N> |
getNodes()
Returns a set of all contained nodes, in the order how the nodes were
inserted.
|
Set<R> |
getRelations()
Returns a set of all contained relations, in the order how the relations
were inserted.
|
void |
removeNode(N node)
Removes the passed node from this layer.
|
void |
removeRelation(Relation<? extends N,? extends N> relation)
Removes the passed relation from this layer.
|
void |
setGraph(Graph graph)
Sets the container graph of this node.
|
getId, getIdentifier, setId, setIdentifieraddLabel, containsLabel, getLabel, getLabel, getLabels, getLabelsByNamespace, removeAll, removeLabel, removeLabel, sizeLabelsGraph getGraph()
void setGraph(Graph graph)
Layer and the passed Graph object, the real insertion is
done by method #basicSetGraph(Graph).graph - graph which contains this layervoid addNode(N node)
node - node to be inserted into this layervoid removeNode(N node)
node - to be removedSet<N> getNodes()
void addRelation(Relation<? extends N,? extends N> relation)
relation - relation to be inserted into this layervoid removeRelation(Relation<? extends N,? extends N> relation)
relation - to be removedCopyright © 2009–2019 Humboldt-Universität zu Berlin, INRIA. All rights reserved.