gephi / gephi-plugins

Repository for Gephi Plugins maintained by the team. Each plugin has it's branch.
270 stars 620 forks source link

FA2 plugin interval vs timestamp #197

Closed juliannej closed 6 years ago

juliannej commented 6 years ago

Hi,

Does ForceAtlas2 work dynamically with timestamped data? In my experience, it has. However, when I look at the code, I only see mention of interval. I am building my adaptation of the FA2 plugin to work with both timestamped and interval data with timestamp as a higher priority. Can you advise whether this is already built into the FA2 code somehow (and how) - when I run my modified FA2, it is limited to interval-defined data, which I want to fix.

Thank you, Julianne

eduramiba commented 6 years ago

Hi Julianne, Yes, it should work with timestamps. What it does is get the weight for the current timeline time-interval window, which is a filtered graph view: https://github.com/gephi/gephi/blob/master/modules/LayoutPlugin/src/main/java/org/gephi/layout/plugin/forceAtlas2/ForceAtlas2.java#L149