# Pagerank for weighted graphs in julia

**URL:** <https://discourse.julialang.org/t/pagerank-for-weighted-graphs-in-julia/101076>\
**Category:** Graphs\
**Tags:** question, graphs\
**Created:** [July 2, 2023, 12:08pm UTC](https://discourse.julialang.org/t/pagerank-for-weighted-graphs-in-julia/101076 "2023-07-02T12:08:14Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![vmpyr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vmpyr/32/46406_2.png) [@vmpyr](https://discourse.julialang.org/u/vmpyr)\
**Post date:** [July 2, 2023, 3:44pm UTC](https://discourse.julialang.org/t/pagerank-for-weighted-graphs-in-julia/101076/4 "2023-07-02T15:44:18Z")

</div>

Hey @gdalle, I tried pagerank with `networkx`, for the same file as shown above, and these are the results, you can clearly see the greater rank score of `node 3` and `node 13` since they are part of the most “weighted” edge by far:

```python
{
 '1': 0.07999848984931547, 
 '2': 0.05603006628782006, 
 '3': 0.1442076878706111, 
 '4': 0.06915320750734422,
 '5': 0.13443522946519423,
 '6': 0.14117357854542822,
 '7': 0.013136636002009195,
 '8': 0.023005526742333755,
 '9': 0.023005526742333755,
 '10': 0.03811631664256225,
 '11': 0.015038603206693566,
 '12': 0.02813569154177212,
 '13': 0.12541081917264824,
 '14': 0.008835806570477979,
 '15': 0.014283774810718273,
 '16': 0.05134019502867372,
 '17': 0.010096463539654842,
 '18': 0.011197326888429629,
 '19': 0.013399053585979207
}

```

---

_[View the full topic](https://discourse.julialang.org/t/pagerank-for-weighted-graphs-in-julia/101076)._
