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, nodeNum
protected GraphEltSet completeEltSet
public Locality(GraphEltSet ges)
public GraphEltSet getCompleteEltSet()
public void addNode(Node n) throws TGException
GraphEltSet
addNode
in class GraphEltSet
TGException
public void addEdge(Edge e)
GraphEltSet
addEdge
in class GraphEltSet
public void addNodeWithEdges(Node n) throws TGException
TGException
public void addAll() throws TGException
TGException
public Edge findEdge(Node from, Node to)
GraphEltSet
findEdge
in interface ImmutableGraphEltSet
findEdge
in class GraphEltSet
public boolean deleteEdge(Edge e)
GraphEltSet
deleteEdge
in class GraphEltSet
public void deleteEdges(java.util.Vector edgesToDelete)
GraphEltSet
deleteEdges
in class GraphEltSet
public boolean removeEdge(Edge e)
public void removeEdges(java.util.Vector edgesToRemove)
public boolean deleteNode(Node node)
GraphEltSet
deleteNode
in class GraphEltSet
public void deleteNodes(java.util.Vector nodesToDelete)
GraphEltSet
deleteNodes
in class GraphEltSet
public boolean removeNode(Node node)
public void removeNodes(java.util.Vector nodesToRemove)
public void removeAll()
public void clearAll()
GraphEltSet
clearAll
in class GraphEltSet