Working with graphs - Kevin Bacon game

Josip Skako jskako at gmail.com
Wed Jan 9 09:09:38 EST 2019


I get it now, basically you are accessing class atributes with "self.something", thank You.

So now I get this:

"['Apollo 13 (1995)', 'Bill Paxton', 'Tom Hanks', 'Kevin Bacon\n', 'Begyndte ombord, Det (1937)', 'Aage Schmidt', 'Valso Holm\n', 'Bersaglio mobile (1967)', 'Dana Young', 'Bebe Drake\n', 'Bezottsovshchina (1976)', 'Yelena Maksimova', 'Lev Prygunov\n', 'Dark, The (1979)', 'Angelo Rossitto', 'William Devane\n', 'Death to Smoochy (2002)',..."

That is great.
What would be the best way now to find shortest path between ex. Tom Hanks and ex. William Devane?

I should get something like: https://oracleofbacon.org/

Should I insert this data into networkx somehow, would it be easier?



More information about the Python-list mailing list