Graph data structure for Objective-C