I need to find the shortest distance between two Wikipedia pages (in "hops")
I have a method to extract all the internal wiki links on a page
I know the start destination and the end destination but I'm coming up blank on how to extract the hops from the data
so far ive been using the link extraction method to populate a dictionary with the key being the link on the page and the value being the page it was taken off of.
If anyone has any ideas one what a good data structure would be to hold the info and then how to look through it I would appreciate it very much