Rita, If you manage to implement PageRank for LightGraphs, we'd welcome a PR :)
Seth. On Thursday, April 2, 2015 at 12:27:09 PM UTC-7, rita...@ciencias.unam.mx wrote: > > Thank you very much for the suggestion, worked perfectly. > > El miércoles, 1 de abril de 2015, 19:13:44 (UTC-6), Seth escribió: >> >> Enter code here... >> >> Hi Rita, >> >> LightGraphs doesn't have PageRank yet but it shouldn't be too difficult >> to add :). Keep in mind that LightGraphs doesn't internalize edge weights / >> distances - they're typically passed in to the relevant functions as a >> matrix. See >> http://lightgraphsjl.readthedocs.org/en/latest/gettingstarted/ for more >> information and let me know if you have any questions. >> >> Your code below is simply >> >> g = Graph(3) >> add_edge!(g,1,2) >> >> and then you'd pass a matrix to an appropriate function with a weight at >> [1,2] of whatever float64 value you needed. >> >> Seth. >> >> On Wednesday, April 1, 2015 at 2:52:08 PM UTC-7, Miles Lubin wrote: >>> >>> Hi Rita, >>> >>> Take a look at the LightGraphs package ( >>> https://github.com/JuliaGraphs/LightGraphs.jl), it should be a bit >>> easier to use and less cranky than Graphs.jl. >>> >>> Miles >>> >>> On Wednesday, April 1, 2015 at 4:37:32 PM UTC-4, Rita Maria del Rio >>> Chanona wrote: >>>> >>>> Hi, >>>> I was wondering if there is yet an implementation of the PageRank >>>> algorithm in the Julia's Graphs package. >>>> I also want to make an undirected weighted graph but I am having >>>> problems with the graph function. I am getting the following error when I >>>> want to add an edgde: >>>> >>>> g = graph([1, 2, 3], [] , is_directed=false ) >>>> >>>> add_edge!(g, 1, 2) >>>> >>>> `add_edge!` has no method matching >>>> add_edge!(::GenericGraph{Int64,None,Array{Int64,1},Array{None,1},Array{Array{None,1},1}}, >>>> ::Int64, ::Int64, ::Edge{Int64}) >>>> while loading In[35], in expression starting on line 1 >>>> >>>> in add_edge! at /home/rm/.julia/v0.4/Graphs/src/graph.jl:120 >>>> >>>> >>>> I also don't know how to add the weight of the edge. >>>> >>>> Thanks in advance. >>>> >>>>