Create graph.c

This code is totally not made for usage. There might be bugs, it doesn't contain everything it should contain and many other problems perhaps might show up. I'm coding it only for experience. Do PM me if you find a certain bug shows up. Thanks in advance