Implemented a Graph structure for finding event associations.