Assume a SpatialGraph is directed and conduct an accumulation of source/sink values at nodes across the network. The accumulation assumes no delay in transmission
routeSDG(SDG, FUN='cumsum', ifld='inflow')A SpatialGraph with the added ofld field in the vertex slot
SpatialGraph, assumed as directed
name of a function to be applied for the routing
name on the field in the SpatialPointDataFrame vertex slot to be used used as source/sink
The SpatialGraph, used as input, must have the ifld field
to be used as input, in the vertices slot v (a SpatialPointsDataFrame). The accumulated output is provided
as the new field ofld in v. The edges slot e
serves to route the input across the network