Skip to content

Function: graphDistance() ​

ts
function graphDistance(firstVertexId: number, secondVertexId: number): number;

Get graph distance between two vertices.

Parameters ​

ParameterTypeDescription
firstVertexIdnumberSource game vertex ID.
secondVertexIdnumberTarget game vertex ID.

Returns ​

number

Distance between vertices.