min_depth method
min_depth (to root) -> minimal distance to root from this synset
Implementation
int min_depth(){
dynamic hypernyms = relations[ConRel.has_hypernym];
int min_depth = 0;
if(hypernyms == null){
min_depth = 0;
}else{
//slow activity... -> optimizing [fixed]
List x = (hypernyms as List).map((e) => e.min_depth()).toList();
x.sort();
min_depth = x[0] + 1;
}
return min_depth;
}