@Override
  public boolean matches(final ZyGraphNode<? extends CViewNode<?>> node) {
    final String operator = panel.getOperator();

    final IViewNode<?> viewNode = node.getRawNode();

    if (operator.equals("<")) {
      return viewNode.getOutgoingEdges().size() < getOutDegree();
    }
    if (operator.equals("=")) {
      return viewNode.getOutgoingEdges().size() == getOutDegree();
    }
    if (operator.equals(">")) {
      return viewNode.getOutgoingEdges().size() > getOutDegree();
    }

    return false;
  }
User interface for selecting nodes based on their out-degree.
java/ui/src/main/java/com/google/security/zynamics/bindiff/gui/dialogs/criteriadialog/conditions/outdegree/OutDegreeCriterion.java