instead of (1/sum(distances over i)) you do (sum(1/distances) over i minus the vertix of reference) (for which 1/d would be infinite). Kind regards, Bob
On 29 November 2012 16:11, Gábor Csárdi <csa...@rmki.kfki.hu> wrote: > Hi Bob, > > What exactly is the harmonic distance between vertices? Sorry, I don't > have Newman's book at hand.... > > G. > > > On Tue, Nov 27, 2012 at 5:42 AM, Bob Pap <bob...@googlemail.com> wrote: > >> Dear all, >> >> closeness and average path length functions in igraph are not defined in >> terms of the harmonic distance between vertices (and no option exists in >> version 0.6). Any suggestion on how to implement within igraph this >> conceptually interesting and straight-forward modification (see for >> instance Newman's Network book on pages 184 and 185) would be very >> appreciated - essentially sums are slightly different and over vertices not >> including the reference one. >> >> Kind regards, >> Bob >> >> _______________________________________________ >> igraph-help mailing list >> igraph-help@nongnu.org >> https://lists.nongnu.org/mailman/listinfo/igraph-help >> >> > > > -- > Gabor Csardi <csa...@rmki.kfki.hu> MTA KFKI RMKI > > > _______________________________________________ > igraph-help mailing list > igraph-help@nongnu.org > https://lists.nongnu.org/mailman/listinfo/igraph-help > >
_______________________________________________ igraph-help mailing list igraph-help@nongnu.org https://lists.nongnu.org/mailman/listinfo/igraph-help