Compute the diameter or bounding radius of a linear network measured using the shortest path distance.
# S3 method for linnet
diameter(x)# S3 method for linnet
boundingradius(x, …)
Linear network (object of class "linnet"
).
Ignored.
A single numeric value.
The diameter of a linear network (in the shortest path distance)
is the maximum value of the shortest-path distance between any
two points
The bounding radius of a linear network (in the shortest path distance)
is the minimum value, over all points
The functions boundingradius
and
diameter
are generic;
the functions boundingradius.linnet
and diameter.linnet
are the methods for objects of class linnet
.
# NOT RUN {
diameter(simplenet)
boundingradius(simplenet)
# }
Run the code above in your browser using DataLab