Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions msss.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>>
============== RESTART: C:\Users\HOME\Downloads\degrees\degrees.py =============
Loading data...
Data loaded.
Name: Kevin Bacon
Which 'Kevin Bacon'?
ID: 102, Name: Kevin Bacon, Birth: 1958
ID: 9323132, Name: Kevin Bacon, Birth:
Intended Person ID: 102
Name: Tom Cruise
Traceback (most recent call last):
File "C:\Users\HOME\Downloads\degrees\degrees.py", line 139, in <module>
main()
File "C:\Users\HOME\Downloads\degrees\degrees.py", line 72, in main
path = shortest_path(source, target)
File "C:\Users\HOME\Downloads\degrees\degrees.py", line 96, in shortest_path
raise NotImplementedError
NotImplementedError
>>>
============== RESTART: C:\Users\HOME\Downloads\degrees\degrees.py ==============
Loading data...
Data loaded.
Name: Kevin Bacon
Which 'Kevin Bacon'?
ID: 102, Name: Kevin Bacon, Birth: 1958
ID: 9323132, Name: Kevin Bacon, Birth:
Intended Person ID: 112384
SystemExit: Person not found.
>>>
============== RESTART: C:\Users\HOME\Downloads\degrees\degrees.py ==============
Loading data...
Data loaded.
Name: Kevin Bacon
Which 'Kevin Bacon'?
ID: 9323132, Name: Kevin Bacon, Birth:
ID: 102, Name: Kevin Bacon, Birth: 1958
Intended Person ID: 104257
SystemExit: Person not found.
>>>
============== RESTART: C:\Users\HOME\Downloads\degrees\degrees.py ==============
Loading data...
Data loaded.
Name: Kevin Bacon
Which 'Kevin Bacon'?
ID: 102, Name: Kevin Bacon, Birth: 1958
ID: 9323132, Name: Kevin Bacon, Birth:
Intended Person ID: 9323132
Name: Tom Cruise
Not connected.
>>>
============== RESTART: C:\Users\HOME\Downloads\degrees\degrees.py ==============
Loading data...
Data loaded.
Name: Tom Cruise
Name: Tom Hanks
2 degrees of separation.
1: Tom Cruise and Meryl Streep starred in Lions for Lambs
2: Meryl Streep and Tom Hanks starred in Everything Is Copy
>>>