Class WalkQualities
java.lang.Object
org.neo4j.gds.graphsampling.samplers.rw.WalkQualities
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddNode(long nodeId) doublelongnodeId(int position) doublenodeQuality(int position) voidremoveNode(int position) intsize()voidupdateNodeQuality(int position, double walkQuality)
-
Constructor Details
-
WalkQualities
-
-
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()
-