modified poll grpah to include nodes