@Deprecated // Use m_graph.getSelectedNodes
  public static <NodeType extends ISelectableNode> IFilledList<NodeType> getSelectedNodes(
      final ISelectableGraph<NodeType> graph) {
    Preconditions.checkNotNull(graph, "Error: Graph argument can't be null");
    final IFilledList<NodeType> nodes = new FilledList<NodeType>();

    graph.iterateSelected(
        new INodeCallback<NodeType>() {
          @Override
          public IterationMode next(final NodeType node) {
            nodes.add(node);
            return IterationMode.CONTINUE;
          }
        });

    return nodes;
  }
Creates a list of all selected nodes of the graph.

@param <NodeType> The type of the nodes in the graph.
@param graph The graph in question.
@return All selected nodes of the graph.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/helpers/GraphHelpers.java