public static String stripFunctionTags(String label){
  if (label.indexOf("-") > 0)   return label.substring(0,label.indexOf("-"));
 else   return label;
}

public static String stripFunctionTags ( String label ) { if ( label . indexOf ( "-" ) > 0 ) return label . substring ( 0 , label . indexOf ( "-" ) ) ; else return label ; }
strips function tags from a given node label . this function assumes that everything that comes before the first hyphen is useful and returns that .
