add

fun add(newNode: Int, newScore: Float)

Adds a new graph arc, extending the storage as needed.

Parameters

newNode

the neighbor node id

newScore

the score of the neighbor, relative to some other node