The construction function of sfnetwork objects now accepts an sf object (with POINT geometry) as nodes, and an sf object (with LINESTRING geometry) as edges. The edges should have a to and from column referring to the indices of their terminate nodes. However, the construction function does not check if the coordinates of the endpoints of each edge match with the coordinates of the terminate nodes of that edge. Such a check should be implemented.
The construction function of sfnetwork objects now accepts an sf object (with POINT geometry) as nodes, and an sf object (with LINESTRING geometry) as edges. The edges should have a
to
andfrom
column referring to the indices of their terminate nodes. However, the construction function does not check if the coordinates of the endpoints of each edge match with the coordinates of the terminate nodes of that edge. Such a check should be implemented.