Add the click event handler with nodes and edges. Retrieve the network information when users click on some node or edge.