Question

summing costs upstream in a network

  • 1 September 2014
  • 3 replies
  • 2 views

Badge
i have a dendritic network of links and nodes

 

 

from specific nodes on the network i want to calculate the total length of links that feed into that node

 

 

i.e. how can i sum the total (cost) of all links "upstream" from a given point

 

 

IanM

3 replies

Userlevel 2
Badge +17
Hi Ian,

 

 

If orientations of all the links are directed to upper stream, the NetworkCostCalculator (Weight Type: By Length (Foward Only)) can be used to extract upstream links from the specified node (i.e. Source). You can then calculate total length of them easily.

 

 

If orientations are unknown but the root node (Destination) is known, you can use the NetworkFlowOrientor and the Orientor (Orientation Type: REVERSE) to adjust link orientations properly.

 

However, if the root node is also unknown, I have no idea to solve the question...

 

 

Takashi
Badge
thanks - that seems to be doing what i want - next step ... how do i configure the workspace to run the calculation for a list of different sources, one at a time

 

 

IanM
Userlevel 2
Badge +17
Regarding the next step, consider using batch processing. There are several ways to do batch processing. See related articles in the Knowledge Base. e.g. enter "batch processing" as key for searching.

 

I prefer to use the WorkspaceRunner or a batch file containing command lines ;)

Reply