Class CGDGraph
- java.lang.Object
-
- repast.simphony.visualization.cgd.graph.CGDGraph
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDummyNode(int index)
void
addEdge(int x, int y)
void
addEdge(int x, int y, Point2D.Double[] _edgePoints)
void
addNode(int index)
void
buildNodeLayout(ParseClanTree _root, int numNodes, int initialNumNodes, TreeSet[] parentRel)
Initializing bounding box placementCGDTreeSet
children(int n)
Children of all the nodes n leads toObject
clone()
void
compute()
void
copy(CGDGraph g)
void
dummysToEdgePaths()
CGDEdge
getEdge(int x, int y)
HashMap
getEdges()
GraphUtil
getGraphUtil()
int
getMaxEIndex()
int
getMaxNIndex()
CGDNode
getNode(int ix)
ArrayList
getNodes()
int
getNumOfNodes()
CGDTreeSet
parents(int n)
Parents of all the nodes leading to nTreeSet[]
processChildRelation()
This method assigns a list of children to each node.boolean
removeEdge(int x, int y)
void
setEdges(HashMap _edges)
void
setMaxEIndex(int i)
void
setMaxNIndex(int i)
void
setNodes(ArrayList _nodes)
-
-
-
Method Detail
-
addNode
public void addNode(int index)
-
addDummyNode
public void addDummyNode(int index)
-
setNodes
public void setNodes(ArrayList _nodes)
-
getNodes
public ArrayList getNodes()
-
setEdges
public void setEdges(HashMap _edges)
-
getEdges
public HashMap getEdges()
-
getEdge
public CGDEdge getEdge(int x, int y)
-
getNode
public CGDNode getNode(int ix)
-
copy
public void copy(CGDGraph g)
-
compute
public void compute()
-
processChildRelation
public TreeSet[] processChildRelation()
This method assigns a list of children to each node. Next it stores in the array of TreeSet's (each for each node) and returns to a caller.- Returns:
- TreeSet[]
-
addEdge
public void addEdge(int x, int y)
-
addEdge
public void addEdge(int x, int y, Point2D.Double[] _edgePoints)
-
removeEdge
public boolean removeEdge(int x, int y)
-
getGraphUtil
public GraphUtil getGraphUtil()
-
buildNodeLayout
public void buildNodeLayout(ParseClanTree _root, int numNodes, int initialNumNodes, TreeSet[] parentRel)
Initializing bounding box placement
-
parents
public CGDTreeSet parents(int n)
Parents of all the nodes leading to n
-
children
public CGDTreeSet children(int n)
Children of all the nodes n leads to
-
dummysToEdgePaths
public void dummysToEdgePaths()
-
getMaxNIndex
public int getMaxNIndex()
-
setMaxNIndex
public void setMaxNIndex(int i)
-
getMaxEIndex
public int getMaxEIndex()
-
setMaxEIndex
public void setMaxEIndex(int i)
-
getNumOfNodes
public int getNumOfNodes()
-
-