Mercurial > hg > Database > Christie
comparison src/test/java/christie/example/PrefixTree/CountCalculate.java @ 207:437f06e034b8
Correct PrefixTree
author | ichikitakahiro <e165713@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 11 Mar 2019 22:21:23 +0900 |
parents | 7beaa2839c3c |
children |
comparison
equal
deleted
inserted
replaced
206:7beaa2839c3c | 207:437f06e034b8 |
---|---|
16 int childNum = topoDG.getConnectionList().size(); | 16 int childNum = topoDG.getConnectionList().size(); |
17 for(String nodeName : topoDG.getConnectionList()) { | 17 for(String nodeName : topoDG.getConnectionList()) { |
18 if(nodeName.matches("parent")) { | 18 if(nodeName.matches("parent")) { |
19 childNum = childNum - 1; | 19 childNum = childNum - 1; |
20 } | 20 } |
21 | 21 |
22 } | 22 } |
23 if (childNum == 0) { | 23 if (childNum == 0) { |
24 put("pushedNum", 0); | 24 put("pushedNum", 0); |
25 } | 25 } |
26 put("count", 0); | 26 put("count", 0); |