Use this if you are using igraph from R
For undirected graphs, head and tail is not defined. In this case
tail_of returns vertices incident to the supplied edges, and
head_of returns the other end(s) of the edge(s).
The input graph.
The edges to query.
A vertex sequence with the tail(s) of the edge(s).