Given a finite graph with nvert vertices and with edges
specified by iedge, jedge, this low-level function
finds all ‘vees’ or ‘dihedral triples’
in the graph, that is, all triples
of vertices (i,j,k) where i and j are joined by
an edge and i and k are joined by an edge.
The interpretation of iedge, jedge is that each successive
pair of entries specifies an edge in the graph.
The \(k\)th edge joins vertex iedge[k] to vertex jedge[k].
Entries of iedge and jedge must be integers
from 1 to nvert.