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 addVertex() {
        this.vertices++;
    }

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

    public void addLeaf() {
        this.leaves++;
    }

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

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

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

    public String toString() {
        return "V: " + this.vertices + ", L: " + this.leaves;
    }

}

@@ -51,16 +51,37 @@
 Metrics 
+implements Cloneable 
 %7B%0A%0A    p
@@ -156,32 +156,144 @@
 ics() %7B%0A%0A    %7D%0A%0A
+    @Override%0A    public Object clone() throws CloneNotSupportedException %7B%0A        return super.clone();%0A    %7D%0A
     public Graph

Implement cloneable