changes to get node and set icon

use getNode(id) on grpahJsComponent class to get the node.
and isNodePresent(id) to check if node is present or not.