Implementing Graph Structure in C