Skip to content

Find the shortest path between two wikipedia pages

Notifications You must be signed in to change notification settings

iftahro/wiki-hops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wiki-hops

Finds the shortest way between two wikipedia pages (titles) using their links.

Usage:

python main.py "Arik Einstein" Banana

(Notice to add double quotes if any of the titles are more that one word)

Output:

Searching a path between 'Arik Einstein' to 'Banana'.
Searching...
Searching...
Searching...

Found the shortest path after 3 hops!
Arik Einstein ======> Yarkon Bridge Trio ======> Achziv ======> Banana

Finished in 25.24 seconds.

About

Find the shortest path between two wikipedia pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages