Dgraph uses head and tail to refer to respectively, the nodes an edge points from and to. This is in opposition to standard terminology where the head of an edge is the head of the arrow -- i.e. the to vertex -- and the tail of the arrow is the vertex the edge points from.
Given the mix-up over terminology, it might be better to replace current usage with unambiguous terms like from and to, noting their correspondence to other graph-theoretic terms in documentation.
Dgraph uses
head
andtail
to refer to respectively, the nodes an edge pointsfrom
andto
. This is in opposition to standard terminology where thehead
of an edge is the head of the arrow -- i.e. theto
vertex -- and thetail
of the arrow is the vertex the edge pointsfrom
.Source: https://en.wikipedia.org/wiki/Graph_(mathematics)#Directed_graph
Given the mix-up over terminology, it might be better to replace current usage with unambiguous terms like
from
andto
, noting their correspondence to other graph-theoretic terms in documentation.