[Gephi-plugins] Avg. Path Length Plugin?

Mathieu Bastian mathieu.bastian at gmail.com
Sun Oct 9 20:40:36 CEST 2011


NaN usually means you are diving some number with 0.

You can use the Netbeans Debugger to follow the path of execution of the
code and find what's wrong:
http://netbeans.org/features/java/debugger.html

Mathieu

On Sat, Oct 8, 2011 at 2:19 PM, Elijah Richard Meeks <emeeks at stanford.edu>wrote:

> Thanks, Sébastien, I found it.  Just as a preliminary step I changed the
> distance variables and arrays to floats and incremented with Edge.getWeight
> instead of 1 and I noticed, somewhat surprisingly, that it came back with
> usable Eccentricity and Closeness values in the attribute columns.  However,
> the Betweenness column came back with NaN values.  I'm still learning the
> ins and outs of both Java and Gephi, so I'm sure this is just a rudimentary
> step, but if anyone familiar with the code has the time to explain why the
> BetweenCol may be handling results differently, I'd be happy to hear it.
>
> Elijah
>
> Sent from my iPhone
>
> On Oct 8, 2011, at 12:35 AM, Sébastien Heymann <
> sebastien.heymann at gephi.org> wrote:
>
> > Hi Elijah,
> >
> > It's in GraphDistance: http://wiki.gephi.org/index.php/Avg_Path_Length
> >
> > See you,
> > Seb
> >
> > 2011/10/8 Elijah Meeks <emeeks at stanford.edu>:
> >> I was going to try my hand at writing a weighted betweenness measure,
> but when I looked through the Gephi source, I couldn't find the original
> module that gives you betweenness, closeness and eccentricity.  I found the
> other standard statistics in the Statistics Plugins module but nothing that
> resembled what I'm familiar with as the "Avg. Path Length" option in the
> Desktop.
> >>
> >> -Elijah
> >>
> >> ************
> >> Elijah Meeks
> >> http://dhs.stanford.edu
> >> Digital Humanities Specialist
> >> Academic Computing Services
> >> Stanford University
> >> emeeks at stanford.edu
> >> (650)387-6170
> >>
> >> _______________________________________________
> >> gephi-plugins mailing list
> >> gephi-plugins at lists.gephi.org
> >> http://gephi.org/mailman/listinfo/gephi-plugins
> >>
> _______________________________________________
> gephi-plugins mailing list
> gephi-plugins at lists.gephi.org
> http://gephi.org/mailman/listinfo/gephi-plugins
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gephi.org/pipermail/gephi-plugins/attachments/20111009/62699f94/attachment.html>


More information about the gephi-plugins mailing list