Class WalkQualities

java.lang.Object
org.neo4j.gds.graphsampling.samplers.rw.WalkQualities

public class WalkQualities extends Object
In order be able to sample start nodes uniformly at random (for performance reasons) we have a special data structure which is optimized for exactly this. In particular, we need to be able to do random access by index of the set of start nodes we are currently interested in. A simple hashmap for example does not work for this reason.
  • Constructor Details

  • Method Details

    • addNode

      public boolean addNode(long nodeId)
    • removeNode

      public void removeNode(int position)
    • nodeId

      public long nodeId(int position)
    • nodeQuality

      public double nodeQuality(int position)
    • updateNodeQuality

      public void updateNodeQuality(int position, double walkQuality)
    • expectedQuality

      public double expectedQuality()
    • size

      public int size()