adding the graph and the weights
Changes made to the weights for dates being close to each other for events