Most ushort is changed to uint. Since the number of nodes of a graph may now be larger than what ushort can represent.
Most matrix.get(node1, node2) is changed back to matrix[node1][node2]. But use matrix.get(node1, node2) when the matrix is specified as const.
Most ushort is changed to uint. Since the number of nodes of a graph may now be larger than what ushort can represent. Most matrix.get(node1, node2) is changed back to matrix[node1][node2]. But use matrix.get(node1, node2) when the matrix is specified as const.