package uk.ac.ebi.quickgo.ontology.model;

import java.util.Set;

/**
 * Data Structure for sub graph of ontology.
 * @author Tony Wardell
 * Date: 14/06/2017
 * Time: 10:47
 * Created with IntelliJ IDEA.
 */
public class AncestorGraph {

    public final Set<OntologyRelationship> edges;
    public final Set<String> vertices;

    public AncestorGraph(Set<OntologyRelationship> edges, Set<String> vertices) {
        this.edges = edges;
        this.vertices = vertices;
    }
}

@@ -36,16 +36,42 @@
 model;%0A%0A
+import java.util.HashSet;%0A
 import j
@@ -497,11 +497,241 @@
 s;%0A    %7D
+%0A%0A    public static AncestorGraph create() %7B%0A        Set%3CString%3E ancestorsFound = new HashSet%3C%3E();%0A        Set%3COntologyRelationship%3E edgesFound = new HashSet%3C%3E();%0A        return new AncestorGraph(edgesFound, ancestorsFound);%0A    %7D
 %0A%7D%0A

Add static factory method.