The CS dept. at UVA has written a "Kevin Bacon" program.

Link : http://www.cs.virginia.edu/oracle/