build

Validates the whole specification, computes the distance matrix, and returns the finished network.

Throws

when the specification describes a network that cannot exist