isNodeDownstream: Check if a node is downstream or upstream another one

View source: R/utils.GRiwrm.R

isNodeDownstreamR Documentation

Check if a node is downstream or upstream another one

Description

Check if a node is downstream or upstream another one

Usage

isNodeDownstream(x, current_node, candidate_node)

## S3 method for class 'GRiwrmInputsModel'
isNodeDownstream(x, current_node, candidate_node)

## S3 method for class 'GRiwrm'
isNodeDownstream(x, current_node, candidate_node)

isNodeUpstream(x, current_node, candidate_node)

## S3 method for class 'GRiwrm'
isNodeUpstream(x, current_node, candidate_node)

## S3 method for class 'GRiwrmInputsModel'
isNodeUpstream(x, current_node, candidate_node)

Arguments

x

[GRiwrmInputsModel object] (see CreateInputsModel.GRiwrm) or [GRiwrm object] (See CreateGRiwrm)

current_node

character with the id of the current node

candidate_node

character with the id of the node for which we want to know if it is downstream or upstream current_node

Value

logical TRUE if the node with the id down_candidate is downstream or upstream the node with the id current_node


inrae/airGRiwrm documentation built on Sept. 27, 2024, 6:08 p.m.