Add a "listener" to report data from a 'sigmaNet' object in 'Shiny' back to the R session.

addListener(sigmaObj, listener)

Arguments

sigmaObj

A 'sigmaNet' object - created using the 'sigmaFromIgraph' function

listener

Either "clickNode" to listen to node clicks or "hoverNode" to listen to node hover