Whenever the strip between 2 nodes is clicked, a search should run and the output should be generated in a table (below the Sankey Diagram).
Here's good documentation on how you can achieve that
http://dev.splunk.com/view/webframework-tutorials/SP-CAAAEN7