Is it possible to change the node icon in ns2. For Example: usually in ns2, the icon appear as circle with numbers. Instead of that can we change the icon as computer icon or someother icons.
In ns-2, each node is defined with a set of attributes.
Attributes specific to node are color, shape, label, label-color, position of label and adding/deleting mark on the node. Each node can have 3 shapes: circle (default), square, or hexagon. But once created, the shape of a node CANNOT be changed during the simulation. Different node may have different colors, and its color may be changed during animation. The following OTcl procedures are used to set node attributes, they are methods of the class Node:
$node color [color] ;# sets color of node
$node shape [shape] ;# sets shape of node
$node label [label] ;# sets label on node
$node label-color [lcolor] ;# sets color of label
$node label-at [ldirection] ;# sets position of label
$node add-mark [name] [color] [shape] ;# adds a mark to node
$node delete-mark [name] ;# deletes mark from node