title: Depth First Search in MySQL
body: <p>I'm trying to write a MySQL <code>PROCEDURE</code> which takes an edge <code>e</code> and an edge set <code>eset</code> as inputs and outputs a boolean value <code>iscyclic</code> to determine whether the additional edge results in a cyclic graph. Would there be any more straightforward way to do this other than creating a table of all the vertices with a column for something like "<code>visit count</code>" and then checking if any vertex is visited more than once while running through the edge set?</p>