All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class relaaja.netlayout.VGJ.Spring

java.lang.Object
   |
   +----relaaja.netlayout.VGJ.Spring

public class Spring
extends Object
implements GraphAlgorithm
Class to implement Kamada and Kawai's spring algorithm with modifications).

Here is the source.


Variable Index

 o area
 o average
 o biggest
 o connected
 o count
 o COUNTER
 o D
 o delta
 o E
 o E_HY
 o EDGES
 o edges
 o epsilon
 o HY_PERCENTAGE
 o HY_SIZE
 o K
 o Ko
 o L
 o MAX_TIMES_REPOSITIONED
 o mv
 o N
 o NUM_TIMES_MOVED
 o numTimesRepositioned
 o orderedList
 o partial_x
 o partial_xx
 o partial_xy
 o partial_y
 o partial_yx
 o partial_yy
 o rect
 o s_biggest
 o xmax
 o xmin
 o ymax
 o ymin

Constructor Index

 o Spring()

Method Index

 o CheckPositions(Graph)
 o compute(Graph)
 o enum(int)
 o find_l_and_k(Graph)
 o findBiggest(Graph)
 o findDelta2(Graph, Node)
 o findDistances(Graph, int)
 o findE(Graph)
 o findPartials(Graph, Node)
 o Initialize(Graph)
 o makeOrderedList(Graph)
 o MoveToNewPosition(Graph)
 o MoveToNewPosition1(Graph)
 o MoveToNewPosition2(Graph)
 o TempFunction(double, double)

Variables

 o rect
 private DRect rect
 o xmax
 private double xmax
 o xmin
 private double xmin
 o ymax
 private double ymax
 o ymin
 private double ymin
 o orderedList
 private int orderedList[]
 o N
 private int N
 o EDGES
 private int EDGES
 o D
 private long D[][]
 o K
 private double K[][]
 o Ko
 private double Ko
 o L
 private double L[][]
 o epsilon
 private double epsilon
 o delta
 private double delta[]
 o MAX_TIMES_REPOSITIONED
 private int MAX_TIMES_REPOSITIONED
 o numTimesRepositioned
 private int numTimesRepositioned
 o NUM_TIMES_MOVED
 private int NUM_TIMES_MOVED[]
 o HY_SIZE
 private int HY_SIZE
 o HY_PERCENTAGE
 private int HY_PERCENTAGE
 o E
 private double E
 o E_HY
 private double E_HY[]
 o COUNTER
 private int COUNTER
 o mv
 private Node mv
 o partial_x
 private double partial_x
 o partial_y
 private double partial_y
 o partial_xx
 private double partial_xx
 o partial_xy
 private double partial_xy
 o partial_yx
 private double partial_yx
 o partial_yy
 private double partial_yy
 o connected
 private boolean connected
 o biggest
 private double biggest
 o s_biggest
 private double s_biggest
 o average
 private double average
 o area
 private double area
 o count
 private int count
 o edges
 private Edge edges[]

Constructors

 o Spring
 public Spring()

Methods

 o compute
 public Graph compute(Graph G)
 o Initialize
 private void Initialize(Graph G)
 o findBiggest
 private double findBiggest(Graph G)
 o findDistances
 private void findDistances(Graph G,
                            int k)
 o makeOrderedList
 private void makeOrderedList(Graph G)
 o enum
 private int enum(int Index)
 o find_l_and_k
 private void find_l_and_k(Graph G)
 o findDelta2
 private double findDelta2(Graph G,
                           Node v)
 o findPartials
 private void findPartials(Graph G,
                           Node v)
 o TempFunction
 private double TempFunction(double del,
                             double times)
 o findE
 private double findE(Graph G)
 o MoveToNewPosition
 private void MoveToNewPosition(Graph G)
 o MoveToNewPosition1
 private void MoveToNewPosition1(Graph G)
 o MoveToNewPosition2
 private void MoveToNewPosition2(Graph G)
 o CheckPositions
 private void CheckPositions(Graph G)

All Packages  Class Hierarchy  This Package  Previous  Next  Index