public interface Graph
| Modifier and Type | Field and Description |
|---|---|
static int |
INTERNAL_NODE_GRAPH_ID
The graph ID of internal nodes.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getEntranceNodes()
Returns the IDs of the entrance nodes (i.e., nodes from which all other nodes
can be reached).
|
int |
getExternalNodeId(int nodeId)
Returns the ID of the node in the external graph if this node is an external
node.
|
int |
getGraphId(int nodeId)
Returns the ID of the graph the given node is part of.
|
int |
getNumberOfEdges()
Returns the number of edges of this graph.
|
int |
getNumberOfNodes()
Returns the number of nodes of this graph.
|
int[] |
incomingEdgeSources(int nodeId)
Returns an array containing the source node IDs of the edges that have the
given node as target.
|
int[] |
incomingEdgeTypes(int nodeId)
Returns an array containing the types of the incoming edges of the given
node.
|
int[] |
outgoingEdgeTargets(int nodeId)
Returns an array containing the target node IDs of the edges that have the
given node as source.
|
int[] |
outgoingEdgeTypes(int nodeId)
Returns an array containing the types of the outgoing edges of the given
node.
|
static final int INTERNAL_NODE_GRAPH_ID
int[] outgoingEdgeTargets(int nodeId)
outgoingEdgeTypes(int) method.nodeId - the source node ID of the edges for which the target IDs should be
returnedint[] outgoingEdgeTypes(int nodeId)
outgoingEdgeTargets(int) method.nodeId - the source node ID of the edges for which the type IDs should be
returnedint[] incomingEdgeSources(int nodeId)
incomingEdgeTypes(int) method.nodeId - the target node ID of the edges for which the source IDs should be
returnedint[] incomingEdgeTypes(int nodeId)
incomingEdgeSources(int) method.nodeId - the target node ID of the edges for which the type IDs should be
returnedint getNumberOfNodes()
int getNumberOfEdges()
int[] getEntranceNodes()
int getGraphId(int nodeId)
INTERNAL_NODE_GRAPH_ID=-1. If the given node is an
external node, i.e., the node is not part of this graph but there is an edge
from one of the internal nodes to this node, the method returns the ID of the
external graph.nodeId - the ID of the node that should be checked.INTERNAL_NODE_GRAPH_ID=-1) or the ID of
the external graph the node belongs to.int getExternalNodeId(int nodeId)
nodeId - the ID of the node that should be checked.Copyright © 2019–2020. All rights reserved.