Naive linear style regression for weight estimation

+ utils.py has also had a tidy-up
+ medium_graph example with 100 nodes and 400 edges added