public void setNewVertexValue ( VV newValue ) { if ( setNewVertexValueCalled ) { throw new IllegalStateException ( "setNewVertexValue should only be called at most once per updateVertex" ) ; } setNewVertexValueCalled = true ; if ( isOptDegrees ( ) ) { outValWithDegrees . f1 . f0 = newValue ; outWithDegrees . collect ( outValWithDegrees ) ; } else { outVal . setValue ( newValue ) ; out . collect ( outVal ) ; } }
Sets the new value of this vertex . Setting a new value triggers the sending of outgoing messages from this vertex .