Since you've solved it now, I guess I can point out
The Oracle of Bacon, which finds the optimal path between any two actors. Such as:
Charles Chaplin was in The Great Dictator (1940) with Don Brodie
Don Brodie was in Murphy's Law (1986) with David Hayman
David Hayman was in Where the Truth Lies (2005) with Kevin Bacon