I want to write a program which determines whether a given directed graph (of vertex objects which have a left and a right child) has the structure of a pyramid, meaning I\'