Class: ConnectionCosts

ConnectionCosts

new ConnectionCosts(initial_size)

Connection costs matrix from cc.dat file. 2 dimension matrix [forward_id][backward_id] -> cost
Parameters:
Name Type Description
initial_size number Initial size of buffer
Source:

Methods

<static> build(matrix_text) → {ConnectionCosts}

Parse and build ConnectionCosts from contents of "matrix.def"
Parameters:
Name Type Description
matrix_text string Text contents of "matrix.def"
Source:
Returns:
Type
ConnectionCosts