Re: Working with graphs - Kevin Bacon game

2019-01-09 Thread Josip Skako
Thank You for your answer, I fixed everything as You said.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Working with graphs - Kevin Bacon game

2019-01-09 Thread Josip Skako
Thank You for Your answer,

I am not sure what to try anymore, I guess I have to return "ime" from 
__slots__ at cvor() class to show proper strings and I am not able to do it.

Now I am not sure that I am going at right direction to do Kevin Bacon game and 
will I be able to load this data into graph and find shortest way?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Working with graphs - Kevin Bacon game

2019-01-09 Thread Josip Skako
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?
-- 
https://mail.python.org/mailman/listinfo/python-list