/** * @param origGraph * the original graph to clone from * @param newGraph * the new graph */ public ONDEXGraphCloner(ONDEXGraph origGraph, ONDEXGraph newGraph) { this.origGraph = origGraph; this.newGraph = newGraph; if (origGraph.equals(newGraph)) { throw new IllegalArgumentException( "Illegal argument graph source and clone are identical"); } else if (origGraph.getSID() == newGraph.getSID()) { throw new IllegalArgumentException( "Illegal argument graph source and clone are of the same name"); } createIndex(); }