Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2014

Allow an ability to specify seeding for random methods such as coin, sample and Order.shuffle

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: 3.3.3
    • Fix Version/s: 3.5.0
    • Component/s: process
    • Labels:
      None

      Description

      Currently, all the methods that have non-deterministic behavior such as coin and sample have no ability to set a seed. The ability to set a seed will allow for reproducible and testable behavior as well as more control flow for random processes. If a certain backend does not support seeding, they could simply ignore it. Some possible API changes:

      graph.traversal.V().withSeed(2L).coin(.5)

      graph.traversal.V().sample(3, 0L)

        Attachments

          Activity

            People

            • Assignee:
              spmallette Stephen Mallette
              Reporter:
              samraisin Sam Rosen
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: