Mercurial > hg > Database > Christie
changeset 206:7beaa2839c3c
Correct PrefixTree
author | ichikitakahiro <e165713@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 11 Mar 2019 22:20:51 +0900 |
parents | 87e9abce774f |
children | 437f06e034b8 |
files | src/test/java/christie/example/PrefixTree/CountCalculate.java |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/test/java/christie/example/PrefixTree/CountCalculate.java Mon Mar 11 00:20:53 2019 +0900 +++ b/src/test/java/christie/example/PrefixTree/CountCalculate.java Mon Mar 11 22:20:51 2019 +0900 @@ -14,6 +14,12 @@ @Override protected void run(CodeGearManager cgm) { int childNum = topoDG.getConnectionList().size(); + for(String nodeName : topoDG.getConnectionList()) { + if(nodeName.matches("parent")) { + childNum = childNum - 1; + } + + } if (childNum == 0) { put("pushedNum", 0); }