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
    double degree
    Aggregate degree.

    Fields inherited from class org.miv.pherd.ntree.BarycenterCellData

    cell, center, marked, weight
  • Constructor Summary

    Constructors 
    Constructor Description
    GraphCellData()  
  • Method Summary

    Modifier and Type Method Description
    double getDegree()
    Aggregate degree.
    org.miv.pherd.ntree.CellData newCellData()  
    void recompute()  

    Methods inherited from class org.miv.pherd.ntree.BarycenterCellData

    distanceFrom, getCenter, getWeight, setCell

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • degree

      public double degree
      Aggregate degree. The sum of the degrees of each node aggregated in this barycenter.
  • Constructor Details

  • 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:
      newCellData in interface org.miv.pherd.ntree.CellData
      Overrides:
      newCellData in class org.miv.pherd.ntree.BarycenterCellData
    • recompute

      public void recompute()
      Specified by:
      recompute in interface org.miv.pherd.ntree.CellData
      Overrides:
      recompute in class org.miv.pherd.ntree.BarycenterCellData