Added "install_requires" when using setuptools

With this pull request, dependency installation will happen automatically when using pip. That way, you don't need to manually install the required dependencies(networkx and PyYAML).