public int getPathLengthInNodes ( Category node1 , Category node2 ) throws WikiApiException { int retValue = getPathLengthInEdges ( node1 , node2 ) ; if ( retValue == 0 ) { return 0 ; } else if ( retValue > 0 ) { return ( -- retValue ) ; } else if ( retValue == - 1 ) { return - 1 ; } else { throw new WikiApiException ( "Unknown return value." ) ; } }
Gets the path length between two category nodes - measured in nodes .