Help plotting network graphs with different node size and colors

Hi - I just posted an issue I am having plotting network graphs with varying sizes and node colors on stack overflow.

Any help would be appreciated. Thanks