Class GraphCellData
java.lang.Object
org.miv.pherd.ntree.BarycenterCellData
org.graphstream.ui.layout.springbox.GraphCellData
- All Implemented Interfaces:
org.miv.pherd.ntree.CellData
public class GraphCellData
extends org.miv.pherd.ntree.BarycenterCellData
A N-Tree cell data that both compute the barycenter of each cell (aggregate
position), the aggregate weight of each cell (sum of all of the cell node
weights) and the aggregate degree of each cell (sum of all of the cell node
degree).
-
Field Summary
Fields Modifier and Type Field Description doubledegreeAggregate degree. -
Constructor Summary
Constructors Constructor Description GraphCellData() -
Method Summary
Modifier and Type Method Description doublegetDegree()Aggregate degree.org.miv.pherd.ntree.CellDatanewCellData()voidrecompute()
-
Field Details
-
degree
public double degreeAggregate degree. The sum of the degrees of each node aggregated in this barycenter.
-
-
Constructor Details
-
GraphCellData
public GraphCellData()
-
-
Method Details
-
getDegree
public double getDegree()Aggregate degree. The sum of the degrees of each node aggregated in this barycenter. -
newCellData
public org.miv.pherd.ntree.CellData newCellData()- Specified by:
newCellDatain interfaceorg.miv.pherd.ntree.CellData- Overrides:
newCellDatain classorg.miv.pherd.ntree.BarycenterCellData
-
recompute
public void recompute()- Specified by:
recomputein interfaceorg.miv.pherd.ntree.CellData- Overrides:
recomputein classorg.miv.pherd.ntree.BarycenterCellData
-