Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-27718

incorrect result from pagerank

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.4.1
    • Fix Version/s: None
    • Component/s: Examples
    • Labels:
      None

      Description

      When I executed /examples/src/main/python/pagerank.py 

      The result is shown as follows

       

      1 has rank: 0.5821576292853757.
      
      2 has rank: 0.3361551945789305.
      
      3 has rank: 0.3361551945789305.
      
      4 has rank: 0.3361551945789305.
      

       

      However, the same graph executed in networkx-pagerank. The result 

      shown as follows

      {1: 0.4797305739863632, 2: 0.1734231420045456, 3: 0.1734231420045456, 4: 0.1734231420045456}
      

       

       

       

       

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                f422661 De-En Lin
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: