Commit 45b5a07 1 parent 174408b commit 45b5a07 Copy full SHA for 45b5a07
File tree 1 file changed +0
-7
lines changed
src/main/java/programminglife/model/drawing
1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -118,21 +118,16 @@ public DrawableNode getChildSegment() {
118
118
public DrawableSNP createSNPIfPossible (SubGraph subGraph ) {
119
119
// A SNP-able node has:
120
120
if (children .size () < 2 ) { // - at least 2 children
121
- System .out .println ("Not enough children" );
122
121
return null ;
123
122
} else if (children .size () > 4 ) { // - at most 4 children
124
- System .out .println ("Too many children (" + children .size () + ")" );
125
123
return null ;
126
124
} else if (!children .stream ().allMatch (id -> id >= 0 )) { // - no dummy children
127
- System .out .println ("ID < 0" );
128
125
return null ;
129
126
} else if (!subGraph .getChildren (this ).stream ().allMatch (DrawableSegment .class ::isInstance )) {
130
127
// - only children of type DrawableSegment
131
- System .out .println ("Not all Segments" );
132
128
return null ;
133
129
} else if (children .stream ().anyMatch (id -> getGraph ().getSequenceLength (id ) != 1 )) {
134
130
// - only children of length 1
135
- System .out .println ("Sequence length > 1" );
136
131
return null ;
137
132
} else {
138
133
Collection <DrawableSegment > childNodes = subGraph .getChildren (this ).stream ()
@@ -147,10 +142,8 @@ public DrawableSNP createSNPIfPossible(SubGraph subGraph) {
147
142
.flatMap (Collection ::stream )
148
143
.collect (Collectors .toSet ());
149
144
if (childChildren .size () != 1 ) { // - all children have 1 and the same child
150
- System .out .println ("More than 1 children" );
151
145
return null ;
152
146
} else if (childParents .size () != 1 ) { // - all children have 1 and the same parent
153
- System .out .println ("More than 1 parents" );
154
147
return null ;
155
148
}
156
149
You can’t perform that action at this time.
0 commit comments