package io.sigpipe.sing.graph;

public class GraphMetrics {

    private long vertices;
    private long leaves;

    public GraphMetrics() {

    }

    public GraphMetrics(int vertices, int leaves) {
        this.vertices = vertices;
        this.leaves = leaves;
    }

    public void setVertexCount(long vertices) {
        this.vertices = vertices;
    }

    public void setLeafCount(long leaves) {
        this.leaves = leaves;
    }

    public void addVertices(long vertices) {
        this.vertices += vertices;
    }

    public void addLeaves(long leaves) {
        this.leaves += leaves;
    }

    public long getVertexCount() {
        return this.vertices;
    }

    public long getLeafCount() {
        return this.leaves;
    }
}

@@ -463,63 +463,183 @@
 Vert
-ices(long vertices) %7B%0A        this.vertices += vertices
+ex() %7B%0A        this.vertices++;%0A    %7D%0A%0A    public void addVertices(long vertices) %7B%0A        this.vertices += vertices;%0A    %7D%0A%0A    public void addLeaf() %7B%0A        this.leaves++
 ;%0A  

Add single-vertex/leaf add methods