Function: graphDistance()
ts
function graphDistance(firstVertexId: number, secondVertexId: number): number;Get graph distance between two vertices.
Parameters
| Parameter | Type | Description |
|---|---|---|
firstVertexId | number | Source game vertex ID. |
secondVertexId | number | Target game vertex ID. |
Returns
number
Distance between vertices.