public class Locality extends GraphEltSet
| Modifier and Type | Field and Description |
|---|---|
protected GraphEltSet |
completeEltSet |
edges, nodeIDRegistry, nodes| Constructor and Description |
|---|
Locality(GraphEltSet ges)
Constructor with GraphEltSet ges.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAll() |
void |
addEdge(Edge e)
Add the Edge edge to the graph.
|
void |
addNode(Node n)
Add the Node node to the graph, and
registers the Node via its ID.
|
void |
addNodeWithEdges(Node n) |
void |
clearAll()
Clear all nodes and edges.
|
boolean |
deleteEdge(Edge e)
Delete the Edge edge.
|
void |
deleteEdges(java.util.Vector edgesToDelete)
Delete the Edges contained within the Vector edgedToDelete.
|
boolean |
deleteNode(Node node)
Delete the Node node, returning true if successful.
|
void |
deleteNodes(java.util.Vector nodesToDelete)
Delete the Nodes contained within the Vector nodesToDelete.
|
Edge |
findEdge(Node from,
Node to)
Return an Edge spanning Node from to Node to.
|
GraphEltSet |
getCompleteEltSet() |
void |
removeAll() |
boolean |
removeEdge(Edge e) |
void |
removeEdges(java.util.Vector edgesToRemove) |
boolean |
removeNode(Node node) |
void |
removeNodes(java.util.Vector nodesToRemove) |
addEdge, contains, contains, deleteEdge, edgeAt, edgeCount, edgeNum, findNode, findNodeByURL, findNodeLabelContaining, forAllEdges, forAllNodePairs, forAllNodes, getFirstNode, getRandomNode, nodeAt, nodeCount, nodeNumprotected GraphEltSet completeEltSet
public Locality(GraphEltSet ges)
public GraphEltSet getCompleteEltSet()
public void addNode(Node n) throws TGException
GraphEltSetaddNode in class GraphEltSetTGExceptionpublic void addEdge(Edge e)
GraphEltSetaddEdge in class GraphEltSetpublic void addNodeWithEdges(Node n) throws TGException
TGExceptionpublic void addAll()
throws TGException
TGExceptionpublic Edge findEdge(Node from, Node to)
GraphEltSetfindEdge in interface ImmutableGraphEltSetfindEdge in class GraphEltSetpublic boolean deleteEdge(Edge e)
GraphEltSetdeleteEdge in class GraphEltSetpublic void deleteEdges(java.util.Vector edgesToDelete)
GraphEltSetdeleteEdges in class GraphEltSetpublic boolean removeEdge(Edge e)
public void removeEdges(java.util.Vector edgesToRemove)
public boolean deleteNode(Node node)
GraphEltSetdeleteNode in class GraphEltSetpublic void deleteNodes(java.util.Vector nodesToDelete)
GraphEltSetdeleteNodes in class GraphEltSetpublic boolean removeNode(Node node)
public void removeNodes(java.util.Vector nodesToRemove)
public void removeAll()
public void clearAll()
GraphEltSetclearAll in class GraphEltSet