Let X be a smooth complete toric variety of dimension n. It is described by its fan $\Sigma_X$. To study X from the point
of view of Mori theory it is very convenient to present $\Sigma_X$ enumerating its primitive relations and collections (see [2], [3]). In
this paper we describe the algorithm that computes the primitive
relation associated to a primitive collection.