G - The type of the graph.E - The type of the edge itself.N - The type of the nodes.public abstract class Node<G extends IGraph<G,E,N>,E extends IEdge<G,E,N>,N extends INode<G,E,N>> extends Extensible implements INode<G,E,N>
INode| Modifier and Type | Field and Description |
|---|---|
protected G |
graph |
protected java.lang.String |
id |
| Modifier | Constructor and Description |
|---|---|
protected |
Node(G graph,
Node<G,E,N> n)
Constructor for copying a Node.
|
protected |
Node(G graph,
java.lang.String id)
Constructor for creating a Node
|
| Modifier and Type | Method and Description |
|---|---|
G |
getGraph()
Retrieves the graph this node is part of.
|
java.lang.String |
getId()
Returns the id of the node.
|
java.lang.Iterable<E> |
getNeighboringEdges()
Retrieves a view of all edges connected to this node.
|
java.util.Set<E> |
getPostsetEdges()
Retrieves a view of all edges beginning in this node.
|
java.util.Set<N> |
getPostsetNodes()
Retrieves a view of all nodes which have an incoming edge from this node.
|
java.util.Set<E> |
getPresetEdges()
Retrieves a view of all edges targeting this node.
|
java.util.Set<N> |
getPresetNodes()
Retrieves a view of all nodes which have an outgoing edge to this node.
|
java.lang.String |
toString() |
copyExtensions, getCopyExtensions, getExtension, getExtensions, getExtensionsWithoutProperty, getExtensionsWithProperty, getWriteToFileExtensions, hasExtension, putExtension, putExtension, removeExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExtension, putExtension, removeExtensionprotected Node(G graph, java.lang.String id)
graph - the graph this node belongs to.id - the id this node should have.public java.lang.String getId()
INodepublic G getGraph()
INodepublic java.util.Set<N> getPresetNodes()
INodepublic java.util.Set<N> getPostsetNodes()
INodepublic java.util.Set<E> getPresetEdges()
INodepublic java.util.Set<E> getPostsetEdges()
INodepublic java.lang.Iterable<E> getNeighboringEdges()
public java.lang.String toString()
toString in class java.lang.Object