Edited method calculatedExpectedValue to take hashmap of 
reactions to interactions as arg instead of graph.
Removed method checkNumberParents(), not used anywhere.