Detect and repair inconsistencies or duplication in the internal data of a network object.
repairNetwork(X)A linear network (object of class "linnet")
or a point pattern
on a linear network (object of class "lpp").
An object of the same kind as X.
This function detects and repairs inconsistencies
in the internal data of X. Currently it detects and removes
duplication of edges of the network (the presence of two edges between the same pair of vertices).