Data Structures Final Project: Wikipedia Network Analysis
This project has been slightly modified from the original; I have updated the formatting of this readme, renamed a few files, and made other small changes.
Dependencies used (Make sure you have these installed!):
- Jupyter Notebook
Thanks for checking out this project!
Nick Marcopoli (nmarcopo)
Andy Shin (ashin1)
Austin Sura (asura)
Tina Wu (ywu6)
Nick and Andy mainly worked on the visualization part of the project: creating the graph and adding user-interaction features. Tina and Austin mainly worked on the python code that gets the weblinks from each wikipedia page.
Everyone contributed equally to the completion of this project.
Execution of the programs:
To run the backend:
To run the visualization: open the program in Jupyter Notebook:
jupyter notebook --ip XXXXX --port XXXX --no-browser
We made a test script (timememory.py) to benchmark the runtime and memory usage of varying numers of links and layers.
A sample of output is shown below:
Wikipedia Article URL: https://en.wikipedia.org/wiki/Fortnite
|#LINKS||#LAYERS||Time Usage||Memory Usage|
To run the test script:
As mentioned in our video, it is not possible to test the output every time because wikipedia pages are constantly changing. Therefore, we manually tested the outputs by clicking into the web pages and seeing what links are the most
Since we used python and did not manually allocate memories, we did not have a memory issue (we tested by running valgrind, but making a sperate script for that did not seem necessary).