public void addChild ( Concept concept ) { if ( taxonomy != concept . taxonomy ) { throw new IllegalArgumentException ( "Concepts are not from the same taxonomy." ) ; } if ( children == null ) { children = new ArrayList <> ( ) ; } children . add ( concept ) ; concept . parent = this ; }
Add a child to this node