Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement function to print path #16

Open
tranlv opened this issue Dec 25, 2018 · 4 comments
Open

Implement function to print path #16

tranlv opened this issue Dec 25, 2018 · 4 comments

Comments

@tranlv
Copy link
Owner

tranlv commented Dec 25, 2018

No description provided.

@tranlv tranlv self-assigned this Dec 25, 2018
@tranlv tranlv changed the title Implement web server Implement function to print path Jan 17, 2019
@pradeepjnayak
Copy link

I am willing to take up this enhancement . Could you explain more about it. Thanks

@tranlv
Copy link
Owner Author

tranlv commented May 22, 2019

We want to implement a function, i.e. print_path() to print the sequence of paths from source to destination with the shortest number of link, i.e. source url => url_1 => url_2 =>...=> destination url
For example:

from wikilink import WikiLink
app = WikiLink()
app.setup_db("mysql", "root", "12345", "127.0.0.1", "3306")
source = "https://en.wikipedia.org/wiki/Cristiano_Ronaldo"
destination = "https://en.wikipedia.org/wiki/Lionel_Messi"
app.min_link(source, destination, 6)
1
app.print_path()
/Cristiano_Ronaldo
/Lionel_Messi

@pradeepjnayak
Copy link

I have submitted pull request . Please review

@tranlv
Copy link
Owner Author

tranlv commented Jun 11, 2019 via email

@tranlv tranlv assigned pradeepjnayak and unassigned tranlv Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants