title: How to read and set selected nodes in hv.Graph?
body: <ol>
  <li>Can I read the selected nodes (using “tap” tool) from hv.Graph object?</li>
  <li>Can I update the list of selected nodes programmatically? At or after initialization.</li>
  </ol>
  <pre><code># ---- cell #1 ----
  import hvplot.networkx as hvnx
  import numpy as np
  import networkx as nx
  import holoviews as hv
  
  np.random.seed(1)
  G = nx.bull_graph()
  fig = hvnx.draw(G)
  fig
  </code></pre>
  <p><a href="https://i.stack.imgur.com/kcsNZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kcsNZ.png" alt="enter image description here" /></a></p>
  <pre><code># ---- cell #2 ----
  # (1) Can I read the selected nodes from `fig` that a user tapped?
  # * e.g. smth like print(fig.tap_tool.selected) to return [1,4]
  # (2) Can I update the list of selected nodes programmatically?
  # * e.g. smth like fig.tap_tool.selected = [1,2,4]
  </code></pre>