non functioning graph drawing, alpha version of threading