This is an old revision of the document!
Simple Algorithm Prototype
The goal of this prototype is to implement a simple algorithm for detecting simple cycles within a graph.
Let G = (V,E) be a directed graph (G) consists of a finite set of vertices (V) and a finite set of edges (E). Each edge describes a relationship v1 → v2 where v1 and v2 are distinct members of V.
Within G a cycle of length l is a sequence of vertices [v0,v1,…,vl] where vi]-1 → i] for i = 1, 2, …., l-1 and vl → v1.
The cycle is simple when each vertex in [v0,v1,…,vl] are destinct, so that vi ≠ vj for i ≠ j.
References
* Golumbic, M. C. (2004). Algorithmic Graph Theory and Perfect Graphs (2nd ed., Chapter 1 - Graph Theoretic Foundations). North Holland Publishing Company, a Subsidiary of Eslevier.