- given a graph in the format of the files under the folder sample/, returns possible random walks
- length and number of random walks are read in from stdin as user input through argparser
- Tarjan algorithm utilised for efficiency over existing modules
Python 3.9.5
macOS Catalina 10.15.7
random
pathlib
logging=='0.5.1.2'
argparse=='1.1'
networkx=='2.5.1'
- sample/*.txt : Folder with graph data following the format
- pathGeneration.py : Main file to invoke with arguments
$ python3 pathGeneration.py -filepath sample/0.txt -L 3 -N 3
INFO:root:['A', 'C', 'D']
INFO:root:['D', 'C', 'D']
INFO:root:['D', 'C', 'D']