remove_point.tempflow: This function takes a 'tempflow'-object and a point-name (or...

Description Usage Arguments Value

View source: R/tempflow-basics.R

Description

This function takes a 'tempflow'-object and a point-name (or point-id), which will be removed from said flow. If the point has only a successor or only a predecessor, then only the incident edges will be removed. Otherwise, all successors and all predecessors will be connected in a manner such that distances, i.e. weights are preserved.

Usage

1
2
## S3 method for class 'tempflow'
remove_point(tempFlow, removePoint, safe = TRUE)

Arguments

tempFlow

A 'tempflow'-object.

removePoint

A point-name (or point-id) representing the point in time to be removed.

safe

If TRUE, it will be ensured, that the given point is present in the specified 'tempflow'-object. Additionally, the usual tempflow condition are checked (e.g. duplicate names, cycles, ... ).

Value

A new 'tempflow'-object, by removing the specified point and (if necessary) reconnecting the given 'tempflow'-object.


KonstantinRK/tempnetwork documentation built on Dec. 23, 2019, 6:40 p.m.