ENgetlinknodes {epanet2toolkit}R Documentation

Retrieve the index of the end nodes of a link

Description

Retrieve the index of the end nodes of a link

Usage

ENgetlinknodes(linkindex)

Arguments

linkindex

integer specifying the link index

Value

integer vector of node indices for this link

Note

Node and link indexes are consecutive integers starting from 1.

The From and To nodes are as defined for the link in the EPANET input file. The actual direction of flow in the link is not considered.

See Also

ENgetlinkindex

Examples

# path to Net1.inp example file included with this package
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp")  
ENopen( inp, "Net1.rpt")
ENgetlinknodes(1)
ENgetlinknodes(11)
ENclose()

[Package epanet2toolkit version 1.0.4 Index]