This version is executable.  Need to chain if the results are right.

Further to do:
1. Add Lasso trimming
2. Add graph search part
3. Parallelization
4. Graph visualization