Creates a function which returns the tree branch membership label for any location on a linear network.
branchlabelfun(L, root = 1)
Linear network (object of class
Root of the tree. An integer index identifying
which point in
The linear network
must be an acyclic graph (i.e. must not contain any loops) so that it
can be interpreted as a tree.
The result of
f <- branchlabelfun(L, root) is
f which gives,
for each location on the linear network
the tree branch label at that location.
Tree branch labels are explained in
f also belongs to the class
It can be called using several different kinds of data,
as explained in the help for
The values of the function are character strings.
A function (of class
1 2 3 4 5 6 7 8 9