public final class GraphUtilities extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
checkConsistency(Object composite,
GraphModel model)
Check to make sure that all nodes and edges
are self-consistent within a graph.
|
static boolean |
checkContainment(Object composite,
GraphModel model)
Check to make sure that all nodes and edges
are contained with in a graph and are consistent.
|
static Set |
edgeSet(Object composite,
GraphModel model)
Return a new set that contains any edges that are connected
to any nodes in the given composite.
|
static Iterator |
inNodes(Object node,
GraphModel model)
Return an iterator over the nodes on the
other side of edges arriving in the given node.
|
static boolean |
isContainedNode(Object node,
Object composite,
GraphModel model) |
static boolean |
isPartiallyContainedEdge(Object edge,
Object composite,
GraphModel model) |
static boolean |
isTotallyContainedEdge(Object edge,
Object composite,
GraphModel model) |
static Iterator |
localEdges(Object composite,
GraphModel model)
Deprecated.
use totallyContainedEdges instead.
|
static Set |
nodeSet(Object composite,
GraphModel model)
Return a new set that contains all the nodes that are deeply
contained in the given composite.
|
static Iterator |
outNodes(Object node,
GraphModel model)
Return an iterator over the nodes on the
other side of edges emanating from the given node.
|
static Iterator |
partiallyContainedEdges(Object composite,
GraphModel model)
Return an iterator over the edges in a graph
which are partially contained within the given composite node.
|
static void |
purgeNode(Object eventSource,
Object node,
GraphModel model)
Disconnect all of the edges connected to the given node, then
remove it from its graph.
|
static Iterator |
totallyContainedEdges(Object composite,
GraphModel model)
Return an iterator over the edges in a graph
which are totally contained within the given composite node.
|
public static final boolean checkConsistency(Object composite, GraphModel model)
public static final boolean checkContainment(Object composite, GraphModel model)
public static final Set edgeSet(Object composite, GraphModel model)
public static boolean isContainedNode(Object node, Object composite, GraphModel model)
public static boolean isPartiallyContainedEdge(Object edge, Object composite, GraphModel model)
public static boolean isTotallyContainedEdge(Object edge, Object composite, GraphModel model)
public static final Iterator inNodes(Object node, GraphModel model)
public static final Set nodeSet(Object composite, GraphModel model)
public static final Iterator outNodes(Object node, GraphModel model)
public static final void purgeNode(Object eventSource, Object node, GraphModel model) throws GraphException
GraphException
- if the operation fails.public static final Iterator partiallyContainedEdges(Object composite, GraphModel model)
public static final Iterator totallyContainedEdges(Object composite, GraphModel model)
public static final Iterator localEdges(Object composite, GraphModel model)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.