public static <NodeType extends IGraphNode<NodeType> & ISelectableNode>
      boolean areAllChildrenDeselected(final NodeType node) {
    final INodeFilter<NodeType> filter = StandardFilters.getSelectedFilter();

    return GraphAlgorithms.collectChildren(node, filter).size() == 0;
  }
Determines whether all children of a node are deselected.

@param <NodeType> The type of the node and its children.
@param node The node in question.
@return True, if all children of the node are deselected. False, otherwise.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/helpers/GraphHelpers.java