Check if a node is downstream or upstream another one
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)
[GRiwrmInputsModel
object] (see CreateInputsModel.GRiwrm) or
[GRiwrm
object] (See CreateGRiwrm)
character with the id of the current node
character with the id of the node for which we want
to know if it is downstream or upstream current_node
logical TRUE
if the node with the id down_candidate
is downstream
or upstream the node with the id current_node