Fixed graphsDS3, made primalg work, and added test case