Package org.neo4j.gds.similarity.nodesim
Class TopKMap
- java.lang.Object
-
- org.neo4j.gds.similarity.nodesim.TopKMap
-
public class TopKMap extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTopKMap.TopKList
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforEach(org.neo4j.gds.core.utils.queue.BoundedLongLongPriorityQueue.Consumer consumer)TopKMap.TopKListget(long node1)static org.neo4j.gds.core.utils.mem.MemoryEstimationmemoryEstimation(long nodes, int topK)voidput(long node1, long node2, double similarity)java.util.stream.Stream<SimilarityResult>stream()
-
-
-
Method Detail
-
memoryEstimation
public static org.neo4j.gds.core.utils.mem.MemoryEstimation memoryEstimation(long nodes, int topK)
-
put
public void put(long node1, long node2, double similarity)
-
get
public TopKMap.TopKList get(long node1)
-
forEach
public void forEach(org.neo4j.gds.core.utils.queue.BoundedLongLongPriorityQueue.Consumer consumer)
-
stream
public java.util.stream.Stream<SimilarityResult> stream()
-
-