distanceTo(toNode, expandTextEntities, expandFileEntities )
|
|
Parameters
|
NodetoNode
The Node to which the distance is to be measured.
booleanexpandTextEntities
Specifies whether or not text entities should be expanded when measuring the distance.
booleanexpandFileEntities
Specifies whether or not file entities should be expanded when measuring the distance.
|
Returns
|
long. Returns the distance between this Node and toNode. If the distance cannot be calculated, returns -1.
|