RE: Working with graphs - Kevin Bacon game - WOT

2019-01-09 Thread Avi Gross
tever it is we are supposed to waste our breath "talking" about here. -Original Message- From: Python-list On Behalf Of jsk...@gmail.com Sent: Wednesday, January 9, 2019 4:54 AM To: python-list@python.org Subject: Working with graphs - Kevin Bacon game I am working on Kevin Baco

Re: Working with graphs - Kevin Bacon game

2019-01-09 Thread MRAB
On 2019-01-09 14:09, Josip Skako wrote: 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 m

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\

Re: Working with graphs - Kevin Bacon game

2019-01-09 Thread MRAB
On 2019-01-09 12:46, Josip Skako wrote: 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. With: class cvor: __slots__ = ('ime','susjed') def __repr__(self):

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 gr

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 MRAB
On 2019-01-09 09:53, jsk...@gmail.com wrote: I am working on Kevin Bacon game. I have "movies.txt" text file that looks like: Apollo 13 (1995);Bill Paxton;Tom Hanks;Kevin Bacon Begyndte ombord, Det (1937);Aage Schmidt;Valso Holm Bersaglio mobile (1967);Dana Young;Bebe Drake Bezottsovshchina (19

Re: Working with graphs - Kevin Bacon game

2019-01-09 Thread Chris Angelico
On Wed, Jan 9, 2019 at 8:56 PM wrote: > class cvor: > __slots__ = ('ime','susjed') > > My problem is that when I print graph with "print (graph)" I am getting: > > "[<__main__.cvor object at 0x01475275EBE0>, <__main__.cvor object at > 0x01475275EEF0>, <__main__.cvor object at 0x01

Working with graphs - Kevin Bacon game

2019-01-09 Thread jskako
I am working on Kevin Bacon game. I have "movies.txt" text file that looks like: Apollo 13 (1995);Bill Paxton;Tom Hanks;Kevin Bacon Begyndte ombord, Det (1937);Aage Schmidt;Valso Holm Bersaglio mobile (1967);Dana Young;Bebe Drake Bezottsovshchina (1976);Yelena Maksimova;Lev Prygunov Dark, The (19