Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edge Betweenness #236

Open
pc524 opened this issue Feb 9, 2020 · 11 comments
Open

Edge Betweenness #236

pc524 opened this issue Feb 9, 2020 · 11 comments

Comments

@pc524
Copy link

pc524 commented Feb 9, 2020

Hello,

I was trying to calculate Edge Betweenness, and saw this needs to be done through a plug-in. However, it seems that the existing plug-in is no longer compatible with the newer versions of Gephi -- is there any chance to use the plug-in with the latest versions of Gephi, or even having Edge Betweenness implemented in the main package? That would be really helpful! (I am sure Egde Betweenness could be beneficial to many users...).

Many thanks
Paolo

@xcfcode
Copy link

xcfcode commented Feb 27, 2020

Have you solved this problem?

@pc524
Copy link
Author

pc524 commented Feb 28, 2020

Hello,

No, I haven't. The Edge Betweenness plug-in doesn't seem to be compatible with the latest version of Gephi still. Does anyone know what it would take to make it compatible? It is probably not so a big task, but unfortunately I am not a programmer... (I wish I was!)

@mbastian mbastian transferred this issue from gephi/gephi Oct 26, 2021
@mbastian
Copy link
Member

mbastian commented Jun 29, 2022

Hi, indeed this plugin was never migrated to 0.9+ versions. I took the time to update it but I would like some assistance to check the correctness of the implementation. Making sure it adheres to the scientific definitions, namely

  • Correct values for both directed and undirected graphs
  • Correct way of normalizing

Would someone be able to try this out and report back? Much appreciated!

Here is a development version you can install in Gephi via Plugins > Downloaded after unzipping
edge-betweenness-metric-1.1.0.nbm.zip

@pc524
Copy link
Author

pc524 commented Jul 19, 2022 via email

@mbastian
Copy link
Member

mbastian commented Sep 2, 2022

@pc524 Hi there, any update from your side? Thx

@pc524
Copy link
Author

pc524 commented Sep 5, 2022 via email

@mbastian
Copy link
Member

Hi @pc524, any updates? Thanks!

@giovannetti87
Copy link

giovannetti87 commented Oct 20, 2022

Hi Mathieu,

Hope all is well. Thanks for taking our query so promptly, we warmly appreciate! I am afraid I am unable to match the vector of edge betweenness centralities generated with the porting you kindly provided us with an in-built function of R studio IGRAPH. I tried the script on a directed graph with multiple repeating edges. In gephi, as merging strategy, I asked not to merge the repeated links. Similarly, in Igraph, I used the following import commands:

import data.csv (enclosed) as data
net_test = as.network(data[c('Source', 'Target')], multiple=TRUE, directed=TRUE)
edge_list_dataframe = as.data.frame(edge_list_full)
edge_list_dataframe['edge_betweenness'] = edge_betweenness(
graph.data.frame(net_test),
directed = TRUE,
weights = NULL,
cutoff = -1
)

an ordered/standardized scatterplot of the centralities computed with the two measures gives the following;

image

I am likely getting something wrong (I will investigate how IGRAPH tuckles multiplicity of linkages), but I am unsure on what I should work on

thanks again,

please let us know if we can help further

data.csv

@mbastian
Copy link
Member

Hi @giovannetti87 and thanks for the report. I'm curious if you could isolate the issue a bit further?

  • Do you see mismatch even for graphs that don't have any parallel edges?
  • What about normalization? Do you see a match different when turned on/off?

@giovannetti87
Copy link

Hi @mbastian, I'll check and report back

@giovannetti87
Copy link

giovannetti87 commented Oct 30, 2022

Hi @mbastian . I had a thought about the issue and run another few tests to compare results between Igraph and gephi.
I can confirm that with a simple network made of 2 separated communities connected by a node everything works fine

S| T
1 | 2
3 | 2
4 | 2
2 | 5
5 | 6
6 | 7
6 | 8
6 | 9

As said, the structure above is two islands connected by a bridge. The problems start when we add a second bridge overarching between the two communities, say, a link between 9 and 2

S| T
1 | 2
3 | 2
4 | 2
2 | 5
5 | 6
6 | 7
6 | 8
6 | 9
9 | 2

The centrality in this case is as follows, with R (I studio) and G ( Gephi)

R | G
8 8.5
8 8.5
8 8.5
10.5 13.0
9.5 12.0
8.0 8.5
8.0 8.5
9.5 11.5
10.5 12.5

I think standardization wouldn't work because link [2,5] and [9,2] give inconsistent results between the two apps. Interestingly, these two links are part of the two alternative bridges.

Hope it helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants