int function ( NavNode arg0 ) { if ( this . cost < ( arg0 . cost ) ) { return - 1 ; } else if ( ( this . cost > ( arg0 . cost ) ) ) { return 1 ; } else { return 0 ; } }
to compare two nodes , we compare the cost or ` f ' value , which is the sum of the g and h values defined by a. concode_field_sep Cell cell concode_elem_sep float cost concode_field_sep placeholderType placeHolder