public void selectNode(final NodeType node, final boolean selected) {
    Preconditions.checkNotNull(node, "Node argument can't be null");

    m_graph.firePreEvent();

    ((IViewNode<?>) node.getRawNode()).setSelected(selected);

    m_graph.firePostEvent();
  }
Selects or unselects a single node.

@param node The node to select or unselect.
@param selected True, to select the node. False, to unselect the node.
java/zylib/src/main/java/com/google/security/zynamics/zylib/yfileswrap/gui/zygraph/AbstractZyGraph.java