|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addGraphPerspectiveChangeListener(GraphPerspectiveChangeListener listener)
|
java.lang.Object |
clone()
|
boolean |
containsEdge(Edge edge)
Return true if the given Edge is in this GraphPerspective. |
boolean |
containsEdge(Edge edge,
boolean recurse)
Return true if the given Edge is in this GraphPerspective. |
boolean |
containsNode(Node node)
Return true if the given Node is in this GraphPerspective. |
boolean |
containsNode(Node node,
boolean recurse)
Return true if the given Node is in this GraphPerspective. |
GraphPerspective |
createGraphPerspective(Filter filter)
Create a new GraphPerspective with all of the Nodes from this one that pass the given filter and all of the Edges from this one that pass the filter (and all Nodes incident on those edges). |
GraphPerspective |
createGraphPerspective(int[] node_indices)
Create a new GraphPerspective given a list of Nodes. |
GraphPerspective |
createGraphPerspective(int[] node_indices,
int[] edge_indices)
Deprecated. Use RootGraph.createGraphPerspective(int[], int[]) instead. |
GraphPerspective |
createGraphPerspective(Node[] nodes,
Edge[] edges)
Deprecated. Use RootGraph.createGraphPerspective(int[], int[]) instead. |
boolean |
edgeExists(int from_node_index,
int to_node_index)
Deprecated. Use getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean) instead; if you decide to use this method anyways: this method returns true if and only if either 1) there exists a directed edge E in this GraphPerspective such that from_node_index is E's source node's index and to_node_index is E's target node's index or 2) there exists an undirected edge E in this GraphPerspective such that E's endpoint nodes have indices from_node_index and to_node_index. |
boolean |
edgeExists(Node from,
Node to)
Deprecated. Use getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean) instead; if you decide to use this method anyways: this method returns true if and only if either 1) there exists a directed edge E in this GraphPerspective such that the from node specified is E's source node and the target node specified is E's target node or 2) there exists an undirected edge E in this GraphPerspective such that E's endpoints are the from and to nodes specified. |
java.util.List |
edgeMetaChildrenList(int node_index)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
java.util.List |
edgeMetaChildrenList(Node node)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
java.util.List |
edgeMetaParentsList(int edge_index)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
java.util.Iterator |
edgesIterator()
|
java.util.List |
edgesList()
Deprecated. Use edgesIterator() instead. |
java.util.List |
edgesList(int from_node_index,
int to_node_index,
boolean include_undirected_edges)
Deprecated. Use getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean) instead. |
java.util.List |
edgesList(Node from,
Node to)
Return a new List of the Edges in this GraphPerspective from the first given Node to the second given Node. |
int[] |
getAdjacentEdgeIndicesArray(int node_index,
boolean undirected_edges,
boolean incoming_directed_edges,
boolean outgoing_directed_edges)
Returns [RootGraph] indices of all Edges in this GraphPerspective adjacent to the Node at specified [RootGraph] index. |
java.util.List |
getAdjacentEdgesList(Node node,
boolean include_undirected_edges,
boolean incoming_edges,
boolean outgoing_edges)
Deprecated. Use getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean) instead. |
int[] |
getConnectingEdgeIndicesArray(int[] node_indices)
This will return an array of Edge indices that are the Edges between Nodes. |
java.util.List |
getConnectingEdges(java.util.List nodes)
This will return a List of giny.model.Edge objects that are the Edges between Nodes. |
int[] |
getConnectingNodeIndicesArray(int[] edge_indices)
Deprecated. Use getEdgeSourceIndex(int) and getEdgeTargetIndex(int) instead. |
int |
getDegree(int node_index)
Return the number of distinct Edges in this GraphPerspective incident on the Node with the given index. |
int |
getDegree(Node node)
Return the number of distinct Edges in this GraphPerspective incident on the given Node. |
Edge |
getEdge(int index)
Return an Edge which is in this GraphPerspective. |
int |
getEdgeCount()
Returns number of active edges in this perspective. |
int |
getEdgeCount(int from_node_index,
int to_node_index,
boolean count_undirected_edges)
Deprecated. Use getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean) instead. |
int |
getEdgeCount(Node from,
Node to,
boolean count_undirected_edges)
Deprecated. Use getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean) instead. |
int |
getEdgeIndex(int root_graph_edge_index)
Deprecated. Use getRootGraphEdgeIndex(int), whose functionality is identical. |
int[] |
getEdgeIndicesArray()
Deprecated. Use edgesIterator() together with Edge.getRootGraphIndex(). |
int[] |
getEdgeIndicesArray(int from_node_index,
int to_node_index,
boolean include_undirected_edges)
Deprecated. Use getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean) instead. |
int[] |
getEdgeIndicesArray(int from_node_index,
int to_node_index,
boolean include_undirected_edges,
boolean include_both_directions)
Deprecated. Use getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean) instead. |
int[] |
getEdgeMetaChildIndicesArray(int node_index)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
int[] |
getEdgeMetaParentIndicesArray(int edge_index)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
int |
getEdgeSourceIndex(int edge_index)
Retrieve the index of the Node that is the source of the Edge in this GraphPerspective with the given index. |
int |
getEdgeTargetIndex(int edge_index)
Retrieve the index of the Node that is the target of the Edge in this GraphPerspective with the given index. |
int |
getInDegree(int node_index)
Return the number of Edges e in this GraphPerspective such that e.getTarget().equals( node ). |
int |
getInDegree(int node_index,
boolean count_undirected_edges)
Return the number of Edges e in this GraphPerspective such that e.getSource().equals( node ). |
int |
getInDegree(Node node)
Return the number of Edges e in this GraphPerspective such that e.getTarget().equals( node ). |
int |
getInDegree(Node node,
boolean count_undirected_edges)
Return the number of Edges e in this GraphPerspective such that e.getSource().equals( node ). |
int |
getIndex(Edge edge)
Return the index of the given Edge in the underlying RootGraph. |
int |
getIndex(Node node)
Return the index of the given Node in the underlying RootGraph. |
Node |
getNode(int index)
Return a Node which is in this GraphPerspective. |
int |
getNodeCount()
Returns number of active nodes in this perspective. |
int |
getNodeIndex(int root_graph_node_index)
Deprecated. Use getRootGraphNodeIndex(int), whose functionality is identical. |
int[] |
getNodeIndicesArray()
Deprecated. Use nodesIterator() together with Node.getRootGraphIndex(). |
int[] |
getNodeMetaChildIndicesArray(int node_index)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
int[] |
getNodeMetaParentIndicesArray(int node_index)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
int |
getOutDegree(int node_index)
Return the number of Edges e in this GraphPerspective such that e.getSource().equals( node ). |
int |
getOutDegree(int node_index,
boolean count_undirected_edges)
Return the number of Edges e in this GraphPerspective such that e.getSource().equals( node ). |
int |
getOutDegree(Node node)
Return the number of Edges e in this GraphPerspective such that e.getSource().equals( node ). |
int |
getOutDegree(Node node,
boolean count_undirected_edges)
Return the number of Edges e in this GraphPerspective such that e.getSource().equals( node ). |
RootGraph |
getRootGraph()
Return the root Graph for this GraphPerspective |
int |
getRootGraphEdgeIndex(int root_graph_edge_index)
This method returns the input parameter if and only if an Edge at the specified RootGraph index exists in this GraphPerspective; otherwise 0 is returned. |
int |
getRootGraphNodeIndex(int root_graph_node_index)
This method returns the input parameter if and only if a Node at the specified RootGraph index exists in this GraphPerspective; otherwise 0 is returned. |
Edge |
hideEdge(Edge edge)
If this GraphPerspective does not hide the given Edge, change it so that it does hide the edge. |
int |
hideEdge(int edge_index)
If this GraphPerspective does not hide the Edge with the given index in the RootGraph, change it so that it does hide the edge. |
int[] |
hideEdges(int[] edge_indices)
If this GraphPerspective does not hide any of the Edges corresponding to the indices in the given array, change it so that it does hide those edges. |
java.util.List |
hideEdges(java.util.List edges)
Deprecated. Use hideEdge(Edge) or hideEdges(int[]) instead. |
int |
hideNode(int node_index)
If this GraphPerspective does not hide the Node with the given index in the underlying RootGraph, change it so that it does hide the node and all of its incident edges. |
Node |
hideNode(Node node)
If this GraphPerspective does not hide the given Node, change it so that it does hide the node and all of its incident edges. |
int[] |
hideNodes(int[] node_indices)
If this GraphPerspective does not hide any of the Nodes corresponding to the indices in the given array, change it so that it does hide those nodes and all Edges incident on them. |
java.util.List |
hideNodes(java.util.List nodes)
Deprecated. Use hideNode(Node) or hideNodes(int[]) instead. |
boolean |
isEdgeDirected(int edge_index)
Retrieve the directedness of the Edge in this GraphPerspective with the given [RootGraph] index. |
boolean |
isEdgeMetaChild(int parent_index,
int child_edge_index)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
boolean |
isEdgeMetaParent(int child_edge_index,
int parent_index)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
boolean |
isMetaChild(Node parent,
Edge child)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
boolean |
isMetaChild(Node parent,
Node child)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
boolean |
isMetaParent(Edge child,
Node parent)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
boolean |
isMetaParent(Node child,
Node parent)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
boolean |
isNeighbor(int a_node_index,
int another_node_index)
Deprecated. Use getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean) instead; if you decide to use this method anyways, please note that the definition of "node neighbor" is such: Node A is a "node neighbor" of node B if and only if there exists an edge [directed or undirected] E such that A is E's target and B is E's source, or A is E's source and B is E's target; this method then returns true if and only if node at index a_node_index is a "node neighbor" of node at index another_node_index in this GraphPerspective. |
boolean |
isNeighbor(Node a_node,
Node another_node)
Deprecated. Use getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean) instead; if you decide to use this method anyways, please note that the definition of "node neighbor" is such: Node A is a "node neighbor" of node B if and only if there exists an edge [directed or undirected] E such that A is E's target and B is E's source, or A is E's source and B is E's target; this method then returns true if and only if a_node is a "node neighbor" of another_node in this GraphPerspective. |
boolean |
isNodeMetaChild(int parent_index,
int child_node_index)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
boolean |
isNodeMetaParent(int child_node_index,
int parent_index)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
GraphPerspective |
join(GraphPerspective peer)
Creates a union GraphPerspective. |
java.util.List |
metaParentsList(Edge edge)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
java.util.List |
metaParentsList(Node node)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
int[] |
neighborsArray(int node_index)
Deprecated. Use getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean) instead; if you decide to use this method anyways, please note that the definition of "node neighbor" is such: Node A is a "node neighbor" of node B if and only if there exists an edge [directed or undirected] E such that A is E's target and B is E's source, or A is E's source and B is E's target; this method then returns a non-repeating list of indices of all nodes N in this GraphPerspective such that N is a "node neighbor" of the node at specified index, or null if no node at specified index exists in this GraphPerspective. |
java.util.List |
neighborsList(Node node)
Deprecated. Use getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean) instead; if you decide to use this method anyways, please note that the definition of "node neighbor" is such: Node A is a "node neighbor" of node B if and only if there exists an edge [directed or undirected] E such that A is E's target and B is E's source, or A is E's source and B is E's target; this method then returns a non-repeating list of all nodes N in this GraphPerspective such that N is a "node neighbor" of node, the input parameter. |
java.util.List |
nodeMetaChildrenList(int parent_index)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
java.util.List |
nodeMetaChildrenList(Node node)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
java.util.List |
nodeMetaParentsList(int node_index)
Nodes and Edges comprise an additional directed graph through the contains-a relationship, in which a MetaParent Node contains each of its MetaChild Nodes and Edges. |
java.util.Iterator |
nodesIterator()
Returns an Iterator over all giny.model.Node objects in this GraphPerspective. |
java.util.List |
nodesList()
Deprecated. Use nodesIterator() instead. |
void |
removeGraphPerspectiveChangeListener(GraphPerspectiveChangeListener listener)
|
Edge |
restoreEdge(Edge edge)
If this GraphPerspective hides the given Edge, change it so that it does not hide the edge or the Nodes on which the edge is incident. |
int |
restoreEdge(int edge_index)
If this GraphPerspective hides the Edge with the given index in the underlying RootGraph, change it so that it does not hide the edge or the Nodes on which the edge is incident. |
int[] |
restoreEdges(int[] edge_indices)
If this GraphPerspective hides any of the Edges corresponding to the indices in the given array, change it so that it does not hide those edges or any of the Nodes on which they are incident. |
java.util.List |
restoreEdges(java.util.List edges)
Deprecated. Use restoreEdges(int[]) instead. |
int |
restoreNode(int node_index)
If this GraphPerspective hides the Node with the given index in the underlying RootGraph, change it so that it does not hide the node. |
Node |
restoreNode(Node node)
If this GraphPerspective hides the given Node, change it so that it does not hide the node. |
int[] |
restoreNodes(int[] node_indices)
If this GraphPerspective hides any of the Nodes corresponding to the indices in the given array, change it so that it does not hide those nodes. |
int[] |
restoreNodes(int[] node_indices,
boolean restore_incident_edges)
Deprecated. Use restoreNodes(int[]) and restoreEdges(int[]) instead; to get edges incident to specified nodes, use RootGraph.getConnectingEdgeIndicesArray(int[]). |
java.util.List |
restoreNodes(java.util.List nodes)
Deprecated. Use restoreNode(Node) restoreNodes(int[]) instead. |
java.util.List |
restoreNodes(java.util.List nodes,
boolean restore_incident_edges)
Deprecated. Use restoreNodes(int[]) and restoreEdges(int[]) instead; to get edges incident to specified nodes, use RootGraph.getConnectingEdgeIndicesArray(int[]). |
Method Detail |
public void addGraphPerspectiveChangeListener(GraphPerspectiveChangeListener listener)
public void removeGraphPerspectiveChangeListener(GraphPerspectiveChangeListener listener)
public java.lang.Object clone()
public RootGraph getRootGraph()
public int getNodeCount()
public int getEdgeCount()
public java.util.Iterator nodesIterator()
TECHNICAL DETAIL: Iterating over the set of all nodes in a GraphPerspective and manipulating a GraphPerspective's topology (by calling hideXXX() and restoreXXX() methods) concurrently will have undefined effects on the returned Iterator.
public java.util.List nodesList()
nodesIterator()
public int[] getNodeIndicesArray()
nodesIterator()
,
Node.getRootGraphIndex()
public java.util.Iterator edgesIterator()
public java.util.List edgesList()
edgesIterator()
public int[] getEdgeIndicesArray()
edgesIterator()
,
Edge.getRootGraphIndex()
public int[] getEdgeIndicesArray(int from_node_index, int to_node_index, boolean include_undirected_edges, boolean include_both_directions)
getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean)
public Node hideNode(Node node)
node
- The Node to hide.
public int hideNode(int node_index)
node_index
- The index in the underlying RootGraph of the Node to hide.
public java.util.List hideNodes(java.util.List nodes)
hideNode(Node)
,
hideNodes(int[])
public int[] hideNodes(int[] node_indices)
node_indices
- The int array of indices in the underlying RootGraph of
the Nodes to hide.
public Node restoreNode(Node node)
node
- The Node to restore.
public int restoreNode(int node_index)
node_index
- The index in the underlying RootGraph of the Node to
restore.
public java.util.List restoreNodes(java.util.List nodes)
restoreNode(Node)
,
#removeNodes(int[])
public java.util.List restoreNodes(java.util.List nodes, boolean restore_incident_edges)
restoreNodes(int[])
,
restoreEdges(int[])
,
RootGraph.getConnectingEdgeIndicesArray(int[])
public int[] restoreNodes(int[] node_indices, boolean restore_incident_edges)
node_indices
- The Node indices.restore_incident_edges
- Whether or not the incident edges to the
restored nodes should also be restored.
restoreNodes(int[])
,
restoreEdges(int[])
,
RootGraph.getConnectingEdgeIndicesArray(int[])
public int[] restoreNodes(int[] node_indices)
node_indices
- The int array of indices in the underlying RootGraph
of the Nodes to restore.
public Edge hideEdge(Edge edge)
edge
- The Edge to hide.
public int hideEdge(int edge_index)
edge_index
- The index in the underlying RootGraph of the Edge to
hide.
public java.util.List hideEdges(java.util.List edges)
hideEdge(Edge)
,
hideEdges(int[])
public int[] hideEdges(int[] edge_indices)
edge_indices
- The int array of indices in the underlying RootGraph of
the Edges to hide.
public Edge restoreEdge(Edge edge)
edge
- The Edge to restore.
public int restoreEdge(int edge_index)
edge_index
- The index in the underlying RootGraph of the Edge to
restore.
public java.util.List restoreEdges(java.util.List edges)
restoreEdges(int[])
public int[] restoreEdges(int[] edge_indices)
edge_indices
- An array of indices in the underlying RootGraph of
the Edges to restore.
public boolean containsNode(Node node)
containsNode(Node, boolean)
public boolean containsNode(Node node, boolean recurse)
public boolean containsEdge(Edge edge)
containsEdge( Edge,
boolean )
with a true recurse boolean argument.
public boolean containsEdge(Edge edge, boolean recurse)
public GraphPerspective join(GraphPerspective peer)
public GraphPerspective createGraphPerspective(Node[] nodes, Edge[] edges)
nodes
- A [possibly null] array of Nodes in this GraphPerspective to
include in the new GraphPerspective.edges
- A [possibly null] array of Edges in this GraphPerspective to
include in the new GraphPerspective.
RootGraph.createGraphPerspective(int[], int[])
public GraphPerspective createGraphPerspective(int[] node_indices, int[] edge_indices)
node_indices
- A [possibly null] array of [RootGraph] indices
of Nodes in this GraphPerspective to include in the new GraphPerspective.edge_indices
- A [possibly null] array of [RootGraph] indices
of Edges in this GraphPerspective to include in the new GraphPerspective.
RootGraph.createGraphPerspective(int[], int[])
public GraphPerspective createGraphPerspective(Filter filter)
public java.util.List neighborsList(Node node)
getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean)
public int[] neighborsArray(int node_index)
getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean)
public boolean isNeighbor(Node a_node, Node another_node)
getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean)
public boolean isNeighbor(int a_node_index, int another_node_index)
getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean)
public boolean edgeExists(Node from, Node to)
getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean)
public boolean edgeExists(int from_node_index, int to_node_index)
getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean)
public int getEdgeCount(Node from, Node to, boolean count_undirected_edges)
from
- the Node in this GraphPerspective that is the source of the
edges to be counted.to
- the Node in this GraphPerspective that is the target of the
edges to be counted.count_undirected_edges
- Undirected edges will be included in the
count iff count_undirected_edges is true.
getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean)
public int getEdgeCount(int from_node_index, int to_node_index, boolean count_undirected_edges)
from_node_index
- the index in this GraphPerspective of the Node to
count edges from.to_node_index
- the index in this GraphPerspective of the Node to
find edges to.count_undirected_edges
- Undirected edges will be included in the
count iff count_undirected_edges is true.
getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean)
public java.util.List edgesList(Node from, Node to)
from
- the Node in this GraphPerspective that is the source of the
Edges to be returned.to
- the Node in this GraphPerspective that is the target of the
Edges to be returned.
public java.util.List edgesList(int from_node_index, int to_node_index, boolean include_undirected_edges)
from_node_index
- the index in this GraphPerspective of the Node to
return edges from.to_node_index
- the index in this GraphPerspective of the Node to
return edges to.include_undirected_edges
- Undirected edges will be included in the
List iff include_undirected_edges is true.
getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean)
public int[] getEdgeIndicesArray(int from_node_index, int to_node_index, boolean include_undirected_edges)
from_node_index
- the index in this GraphPerspective of the Node to
return edges from.to_node_index
- the index in this GraphPerspective of the Node to
return edges to.include_undirected_edges
- Undirected edges will be included in the
array iff include_undirected_edges is true.
getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean)
public int getInDegree(Node node)
node
- the Node to count in-edges of.
public int getInDegree(int node_index)
node_index
- the index of the Node to count in-edges of.
public int getInDegree(Node node, boolean count_undirected_edges)
node
- the Node to count in-edges of.count_undirected_edges
- Undirected edges will be included in the
count iff count_undirected_edges is true.
public int getInDegree(int node_index, boolean count_undirected_edges)
node_index
- the index of the Node to count in-edges of.count_undirected_edges
- Undirected edges will be included in the
count iff count_undirected_edges is true.
public int getOutDegree(Node node)
node
- the Node to count out-edges of.
public int getOutDegree(int node_index)
node_index
- the index of the Node to count out-edges of.
public int getOutDegree(Node node, boolean count_undirected_edges)
node
- the Node to count out-edges of.count_undirected_edges
- Undirected edges will be included in the
count iff count_undirected_edges is true.
public int getOutDegree(int node_index, boolean count_undirected_edges)
node_index
- the index of the Node to count out-edges of.count_undirected_edges
- Undirected edges will be included in the
count iff count_undirected_edges is true.
public int getDegree(Node node)
public int getDegree(int node_index)
public int getIndex(Node node)
node
- the Node to find a corresponding index for.
public int getNodeIndex(int root_graph_node_index)
getRootGraphNodeIndex(int)
public int getRootGraphNodeIndex(int root_graph_node_index)
public Node getNode(int index)
index
- the index into the underlying RootGraph to find a
corresponding GraphPerspective Node for.
public int getIndex(Edge edge)
edge
- the Edge to find a corresponding index for.
public int getEdgeIndex(int root_graph_edge_index)
getRootGraphEdgeIndex(int)
public int getRootGraphEdgeIndex(int root_graph_edge_index)
public Edge getEdge(int index)
index
- the index into the underlying RootGraph to find a
corresponding GraphPerspective Edge for.
public int getEdgeSourceIndex(int edge_index)
edge_index
- the [RootGraph] index of the Edge in this GraphPerspective.
public int getEdgeTargetIndex(int edge_index)
edge_index
- the [RootGraph] index of the Edge in this GraphPerspective.
public boolean isEdgeDirected(int edge_index)
edge_index
- the [RootGraph] index of the Edge in this GraphPerspective.
public boolean isMetaParent(Node child, Node parent)
child
- the Node that is the child (the containee) in the
contains-a relationship that we are querying.parent
- the Node that is the parent (the container) in the
contains-a relationship that we are querying.
public boolean isNodeMetaParent(int child_node_index, int parent_index)
child_node_index
- the index in the RootGraph of the Node
that is the child (the containee) in the contains-a relationship
that we are querying.parent_index
- the index in the RootGraph of the Node that is
the parent (the container) in the contains-a relationship that we
are querying.
public java.util.List metaParentsList(Node node)
node
- the Node that is the child (the containee) in the
contains-a relationship that we are querying.
public java.util.List nodeMetaParentsList(int node_index)
node_index
- the index in the RootGraph of the Node that is
the child (the containee) in the contains-a relationship that we
are querying.
public int[] getNodeMetaParentIndicesArray(int node_index)
node_index
- the index in the underlying RootGraph of the Node that is
the child (the containee) in the contains-a relationship that we
are querying.
public boolean isMetaChild(Node parent, Node child)
parent
- the Node that is the parent (the container) in the
contains-a relationship that we are querying.child
- the Node that is the child (the containee) in the
contains-a relationship that we are querying.
public boolean isNodeMetaChild(int parent_index, int child_node_index)
parent_index
- the index in the RootGraph of the Node that is
the parent (the container) in the contains-a relationship that we
are querying.child_node_index
- the index in the RootGraph of the Node
that is the child (the containee) in the contains-a relationship
that we are querying.
public java.util.List nodeMetaChildrenList(Node node)
node
- the Node that is the parent (the container) in the
contains-a relationship that we are querying.
public java.util.List nodeMetaChildrenList(int parent_index)
public int[] getNodeMetaChildIndicesArray(int node_index)
node_index
- the index in the RootGraph of the Node that is
the parent (the containee) in the contains-a relationship that we
are querying.
public boolean isMetaParent(Edge child, Node parent)
child
- the Edge that is the child (the containee) in the
contains-a relationship that we are querying.parent
- the Node that is the parent (the container) in the
contains-a relationship that we are querying.
public boolean isEdgeMetaParent(int child_edge_index, int parent_index)
child_edge_index
- the index in the RootGraph of the Edge
that is the child (the containee) in the contains-a relationship
that we are querying.parent_index
- the index in the RootGraph of the Node that is
the parent (the container) in the contains-a relationship that we
are querying.
public java.util.List metaParentsList(Edge edge)
edge
- the Edge that is the child (the containee) in the
contains-a relationship that we are querying.
public java.util.List edgeMetaParentsList(int edge_index)
edge_index
- the index in the RootGraph of the Edge that is
the child (the containee) in the contains-a relationship that we
are querying.
public int[] getEdgeMetaParentIndicesArray(int edge_index)
edge_index
- the index in the RootGraph of the Edge that is
the child (the containee) in the contains-a relationship that we
are querying.
public boolean isMetaChild(Node parent, Edge child)
parent
- the Node that is the parent (the container) in the
contains-a relationship that we are querying.child
- the Edge that is the child (the containee) in the
contains-a relationship that we are querying.
public boolean isEdgeMetaChild(int parent_index, int child_edge_index)
parent_index
- the index in the RootGraph of the Node that is
the parent (the container) in the contains-a relationship that we
are querying.child_edge_index
- the index in the RootGraph of the Edge
that is the child (the containee) in the contains-a relationship
that we are querying.
public java.util.List edgeMetaChildrenList(Node node)
node
- the Node that is the parent (the container) in the
contains-a relationship that we are querying.
public java.util.List edgeMetaChildrenList(int node_index)
node_index
- the index in the RootGraph of the Node that is
the parent (the container) in the contains-a relationship that we
are querying.
public int[] getEdgeMetaChildIndicesArray(int node_index)
node_index
- the index in the RootGraph of the Node that is
the parent (the containee) in the contains-a relationship that we
are querying.
public java.util.List getAdjacentEdgesList(Node node, boolean include_undirected_edges, boolean incoming_edges, boolean outgoing_edges)
node
- the nodeinclude_undirected_edges
- should we include undirected edgesincoming_edges
- Include incoming edgesoutgoing_edges
- Include outgoing edges
getAdjacentEdgeIndicesArray(int, boolean, boolean, boolean)
public int[] getAdjacentEdgeIndicesArray(int node_index, boolean undirected_edges, boolean incoming_directed_edges, boolean outgoing_directed_edges)
node_index
- the [RootGraph] index of the Node whose adjacent
Edge information we're seeking.undirected_edges
- Edge indices of all adjacent
undirected Edges are included in the return value of this
method if this value is true, otherwise not a single
index corresponding to an undirected Edge is returned;
undirected Edge E is an adjacent undirected Edge to Node N
[definition:] if and only if E's source is N or E's target
is N.incoming_directed_edges
- Edge indices of all incoming
directed Edges are included in the return value of this
method if this value is true, otherwise not a single index
corresponding to an incoming directed Edge is returned;
directed Edge E is an incoming directed Edge to Node N
[definition:] if and only if N is E's target.outgoing_directed_edges
- Edge indices of all outgoing
directed Edges are included in the return value of this
method if this value is true, otherwise not a single index
corresponding to an outgoing directed Edge is returned;
directed Edge E is an outgoing directed Edge from Node N
[definition:] if and only if N is E's source.
public java.util.List getConnectingEdges(java.util.List nodes)
public int[] getConnectingEdgeIndicesArray(int[] node_indices)
public int[] getConnectingNodeIndicesArray(int[] edge_indices)
getEdgeSourceIndex(int)
,
getEdgeTargetIndex(int)
public GraphPerspective createGraphPerspective(int[] node_indices)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |