public String toString(Predicate<GExpansion> filter) { StringBuilder builder = new StringBuilder(); this.print(builder, 0, filter); return builder.toString(); }
@Override public String toString() { StringBuilder builder = new StringBuilder(); this.print(builder, 0, e -> true); return builder.toString(); }