graph creation done , very bad implimntation no optimization , pure brute force :D, but i have a dead line so screw optimization for now