Directed Graph cluster coefficient provides incorrect values in certain situations

Bug #768938 reported by David Greenwood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gephi
Confirmed
High
Thomas Aynaud

Bug Description

Hi,

I have observed that the cluster coefficient statistics for digraphs appear to be incorrect in certain situations.

For example the following graph is reported to have a cluster coefficient of 0.833 (which I believe is correct):
a->b
b->c
c->b
a->c
c->a

The following graph which is equivalent to the above graph (they both represent a triangle minus one directed edge) is incorrectly report to have a coefficient of 0.667:
a->b
b->a
b->c
c->b
a->c

I believe that the problem stems from the fact that the clustering analysis incorrectly reports the local clustering coefficient of a as 0.5 rather 1! Perhaps there is a bug in the local clustering coefficient code?

I have provided the example digraphs as dot files for you to repeat the error should that be helpful.

This bug may need an urgent fix as the statistics produced by the clustering coefficient code for directed graphs may be erroneous?

Revision history for this message
David Greenwood (dsg22) wrote :
Changed in gephi:
milestone: none → 0.8alpha
Changed in gephi:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Thomas Aynaud (taynaud)
Revision history for this message
Mathieu Bastian (mathieu.bastian) wrote :

Is this bug fixed? Thanks for notice.

Revision history for this message
Thomas Aynaud (taynaud) wrote :

It has not yet been fixed. The algorithm seems correct with undirected graph, but not with directed. I do not know if it is the algorithm which is not valid in this case or if it is a bug in the implementation.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.