From 42d1e930f85ecf6bc5f44141052be5fb26c9cbf6 Mon Sep 17 00:00:00 2001 From: zhangyi51 Date: Mon, 28 Jun 2021 14:43:38 +0800 Subject: [PATCH] improve SimilarsMap implementation Change-Id: If98cd1df039bac5d2ca80819e550a7b4501b041d --- .../traversal/algorithm/FusiformSimilarityTraverser.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hugegraph-core/src/main/java/com/baidu/hugegraph/traversal/algorithm/FusiformSimilarityTraverser.java b/hugegraph-core/src/main/java/com/baidu/hugegraph/traversal/algorithm/FusiformSimilarityTraverser.java index 39f807a21f..1737058d68 100644 --- a/hugegraph-core/src/main/java/com/baidu/hugegraph/traversal/algorithm/FusiformSimilarityTraverser.java +++ b/hugegraph-core/src/main/java/com/baidu/hugegraph/traversal/algorithm/FusiformSimilarityTraverser.java @@ -279,6 +279,14 @@ public static class SimilarsMap { private Map> similars = newMap(); + public int size() { + return this.similars.size(); + } + + public Set>> entrySet() { + return this.similars.entrySet(); + } + public void put(Id id, Set similars) { this.similars.put(id, similars); }