add weight concept in the graph.
add ranking.