ENgetnodeid: Retrieve the ID label a node.

Description Usage Arguments Value Note See Also Examples

View source: R/nodes.r

Description

ENgetnodeid retrieves the ID label a node from its index

Usage

1
ENgetnodeid(nodeindex)

Arguments

nodeindex

An integer node index

Value

A character string, the ID label of the specified node.

Note

Node indexes are consecutive integers starting from 1.

See Also

ENgetnodeindex http://wateranalytics.org/EPANET/group___network_info.html

Examples

1
2
3
4
5
6
7
# path to Net1.inp example file included with this package
inp <- file.path( find.package("epanet2toolkit"), "extdata","Net1.inp")  
ENopen( inp, "Net1.rpt")
ENgetnodeid(1)
ENgetnodeid(5)
ENgetnodeid(9)
ENclose()

epanet2toolkit documentation built on July 28, 2018, 1:06 a.m.