Given the linear network L, this function
examines the vertices (segment endpoints) of the network
and determines which of them are ‘terminal’ vertices
(i.e. the endpoint of only one segment). These terminal vertices
are returned as a point pattern on the network.