Included currentVertex (current node) in the 
variables to add to a particular factor. Loop for 
calculating expectedValues ignores the currentVertex.
Finished section to set values for each factor using voting method.