Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3812

[Commons] GraphUtils to support weighted graph edges

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Resolved
    • None
    • 2.2.0, 3.2.0
    • None
    • None

    Description

      Proposal:

      var gBuilder = GraphUtils.GraphBuilder.directed(Customer.class);
      gBuilder
                  .addNode(new Customer("A"))
                  .addNode(new Customer("B"))
                  .addEdge(0, 1, 0.1); // weight of 0.1
      

      If not feasible, at least we need some generic edge indexing.

      Attachments

        Activity

          People

            hobrom Andi Huber
            hobrom Andi Huber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: