When I am selecting a node i am changing the colour of the nodes which are connected from(green) and to(red) to the selected node, the default colour of all nodes on diagram load is blue, I am trying to change all the node colour to default if user clicks on empty space of the diagram.
is there a way to fill all node colour on mydiagram click ?