adding events to the graph