Uploaded image for project: 'Hama'
  1. Hama
  2. HAMA-510

Add sendMessageToNeighbors() to Vertex

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 0.4.0
    • 0.5.0
    • graph
    • None

    Description

      It'd be nice if we add sendMessageToNeighbors().

      In PageRank, then below code can be reduced to 1 line of code.

              for (Edge e : this.getOutEdges()) {
                this.sendMessage(e.getTarget(), new DoubleMessage(e.getName(),
                    (Double) this.getValue() / numEdges));
              }
      

      Attachments

        1. HAMA-510.patch
          3 kB
          Thomas Jungblut

        Activity

          People

            thomas.jungblut Thomas Jungblut
            udanax Edward J. Yoon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: