Vertical Constraint Graph algorithm developed for a graduate course