Doubts about Hubs & Authorities implementation

Computing metrics, community detection and data handling
Post Reply [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
dkigel
Posts:1
Joined:02 May 2012 19:53
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Doubts about Hubs & Authorities implementation

Post by dkigel » 02 May 2012 21:02

Hi everybody,

First of all let me give you my congratulations for this excelent piece of software you are developing. I've started using Gephi a few weeks ago and I'am really impressed with its practical user interface, high visualtization capabilities and varaiety of network analysis algorithms included.

At this moment I am working with eigenvector centralities for information retrival, particularly I am writing you to ask about the Hits & Authorities implementation.

My doubts are about some diferences I've found between the source code Hits.java in github and the algorithm's description done in the reference article http://www.cs.cornell.edu/home/kleinber/auth.pdf.

More precisely my questions have to do with nodes' authority and hub value update in each iteration:

(1) At each iteration you init new nodes' authority and hub values "temp_authorities" and "temp_hubs" with values obtained at the previous iteration and then you add to this original values neighbors' hubs or authorities values respectively. Shouldn't zero initial value for "temp_authorities" and "temp_hubs" be used ?

(2) I understand at a node's hub value update you should sum authority values of nodes connected by outcoming edges. Why are you iterating over incoming edges as you do for node's authority value update ?

I've done some tests comparing Hubs and Authorities values obtained from Gephi with those calculated with Networkx, a python library which also implements HITS, and I've found they are definitely different.

Probably my doubt aren't a problem and I am missing some important points here!

Can help me to understand these diferences?

Thanks in advance!

David

admin
Gephi Community Manager
Posts:964
Joined:09 Dec 2009 14:41
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Doubts about Hubs & Authorities implementation

Post by admin » 04 May 2012 07:57

Hi David,

Thank you for pointing this. The guy who coded the algorithm is not part of Gephi anymore (it was 4 years ago), so it's hard to answer now...

Anyway, if you find ground truth that our implementation is wrong and networkx is right, please open an issue on github and we'll fix it.

ignacio.morer
Posts:3
Joined:12 Jul 2012 18:24
Location:Zaragoza, Spain
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Doubts about Hubs & Authorities implementation

Post by ignacio.morer » 08 Aug 2012 12:17

Hi everyone,

I've spotted a problem with this algorithm too, i'm not sure if it is the same one. The 'authority' ranking is only based on nodes' in-degree value, which doesn't match with the procedure explained in the reference article. I checked on github and I've seen there is an open issue about HITS resolution, so I guess we'll have to wait :)

I'd like to congratulate you as well for the application and its constant improvement. I'm looking forward to being able to export data from graph's statistics (Because it cannot be done yet, right?). I think I read something about this being done this summer, awesome!

Thanks

Ignacio

juliancab
Posts:1
Joined:08 Sep 2013 16:04
Location:United States
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable

Re: Doubts about Hubs & Authorities implementation

Post by juliancab » 08 Sep 2013 16:24

Hi there,

I would like to know if this issue with the calculation of hub authority has been fixed as of September 2013.

I checked the status of issues reported in GitHub (https://github.com/gephi/gephi/pull/756; https://github.com/gephi/gephi/issues/620) and it appears that the issue was resolved in March 2013, but I want to double check. I get some different results when comparing the values obtained with Pajek in a directed graph.

Thanks!

Julián

Post Reply
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable