added code to accommodate single nodes in diagram
Authored by: samantprajakta 2013-07-26
Parent: [r1108]
Child: [r1110]