Skip to content

Commit 4416dc8

Browse files
committed
reduced log pollution by SubgraphFinder
1 parent 2190b4d commit 4416dc8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

singa-mathematics/src/main/java/bio/singa/mathematics/algorithms/graphs/isomorphism/RISubgraphFinder.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ public RISubgraphFinder(GraphType patternGraph, GraphType targetGraph, BiFunctio
5858
calculateMu();
5959
buildParentGraph();
6060
matchTargetGraph();
61-
logger.info("found {} full and {} partial (minimum size: {}) matches in target graph", fullMatches.size(), partialMatches.size(), minimalPartialMatchSize);
61+
logger.debug("found {} full and {} partial (minimum size: {}) matches in target graph", fullMatches.size(), partialMatches.size(), minimalPartialMatchSize);
6262
if (!fullMatches.isEmpty()) {
63-
logger.info("full matches are: {}", fullMatches);
63+
logger.debug("full matches are: {}", fullMatches);
6464
}
6565
}
6666

@@ -84,7 +84,7 @@ private void calculateMu() {
8484
v.sort(Comparator.comparing(node -> patternGraph.getTouchingNodes(node).size()));
8585
NodeType u0 = v.get(v.size() - 1);
8686

87-
logger.info("highest degree node is {} with degree {}", u0, patternGraph.getTouchingNodes(u0).size());
87+
logger.debug("highest degree node is {} with degree {}", u0, patternGraph.getTouchingNodes(u0).size());
8888

8989
// initially remove highest degree node
9090
v.remove(u0);
@@ -200,7 +200,7 @@ private void matchTargetGraph() {
200200
for (NodeType x : targetGraph.getNodes()) {
201201
growSearchSpace(mu.size() - 1, searchSpace, root, x);
202202
}
203-
logger.info("constructed search space graph is: {}", searchSpace);
203+
logger.debug("constructed search space graph is: {}", searchSpace);
204204
}
205205

206206
/**
@@ -337,7 +337,7 @@ private void growSearchSpace(int remainingPatternNodes, DirectedGraph<GenericNod
337337
// if (firstToLastMatches && lastToFirstMatches) {
338338
fullMatches.add(targetSpacePath);
339339
// }else{
340-
// logger.info("(5) ... edge FL:{}-{} LF:{}-{}", targetFirstToLast,patternFirstToLast,targetLastToFirst,patternLastToFirst);
340+
// logger.debug("(5) ... edge FL:{}-{} LF:{}-{}", targetFirstToLast,patternFirstToLast,targetLastToFirst,patternLastToFirst);
341341
// }
342342
}
343343
} else {

0 commit comments

Comments
 (0)