tomnelson / jungrapht-visualization

visualization and sample code from Java Universal Network Graph ported to use JGraphT models and algorithms
Other
47 stars 7 forks source link

Add Getter for mass in org.jungrapht.visualization.layout.quadtree.ForceObject #6

Closed SemyonSinchenko closed 4 years ago

SemyonSinchenko commented 4 years ago

Hello! Thank you for this nice library!

Can you please add a Getter for a mass (or make it public) in ForceObject? I need it for implement a ForceAtlas2 (like in Gephi) because they use a "Repulsion by degree" conception and mass of objects (aka degree) must be used in implementation of ForceObject.addForceFrom method: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0098679

Many thanks in advance!

tomnelson commented 4 years ago

Done! Thanks for your interest.