# Weighted Edge Betweenness

**URL:** <https://igraph.discourse.group/t/weighted-edge-betweenness/741>\
**Category:** Usage\
**Tags:** R\
**Created:** [2 May 2021 11:48 UTC](https://igraph.discourse.group/t/weighted-edge-betweenness/741 "2021-05-02T11:48:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![econstatmath](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/econstatmath/32/490_2.png) [@econstatmath](https://igraph.discourse.group/u/econstatmath)\
**Post date:** [2 May 2021 11:48 UTC](https://igraph.discourse.group/t/weighted-edge-betweenness/741/1 "2021-05-02T11:48:05Z")

</div>

My edge list has 3,330,202 entries. I am running the edge betweenness function with weights, but R Studio is showing a fatal error. However, the function is working fine without the weights. So I have the following question.

Can I get the weighted edge betweenness by multiplying the unweighted edge betweenness with weights?

Thanking You,  
Sourish Dutta  
PhD Student  
Centre for Development Studies  
Trivandrum, Kerala, India

---

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/szhorvat/32/3_2.png) [@szhorvat](https://igraph.discourse.group/u/szhorvat)\
**Post date:** [2 May 2021 11:49 UTC](https://igraph.discourse.group/t/weighted-edge-betweenness/741/2 "2021-05-02T11:49:39Z")

</div>

> [@econstatmath](#):
>
> Can I get the weighted edge betweenness by multiplying the unweighted edge betweenness with weights?

No, that is not the same thing.

> [@econstatmath](#):
>
> but R Studio is showing a fatal error.

Please show a fully reproducible example so if there is a problem in igraph, we can fix it. See [http://sscce.org/](http://sscce.org/) for guidance.

---

<div class="post-metadata">

**Author:** ![econstatmath](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/econstatmath/32/490_2.png) [@econstatmath](https://igraph.discourse.group/u/econstatmath)\
**Post date:** [2 May 2021 12:37 UTC](https://igraph.discourse.group/t/weighted-edge-betweenness/741/3 "2021-05-02T12:37:57Z")

</div>

Thank you so much! I am using igraph for the first time. I have figured out my problem from your reply in an earlier post.

> [@Abort R session when calculating betweenness/closeness centrality](https://igraph.discourse.group/t/abort-r-session-when-calculating-betweenness-closeness-centrality/695/2):
>
> If there are `NA` or `NaN` values in your data, be sure to get rid of them. igraph cannot usually handle them.

I have cleaned my weighted edge list. Now the function of edge betweenness is working fine. This help means a lot! All the very best!
