Skip to content

Commit 16c0aba

Browse files
committed
flip source and target graph depending on the isolated vertices
1 parent 8d699c9 commit 16c0aba

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/graphql/schema/diffing/DiffImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ public DiffImpl(SchemaGraph completeSourceGraph, SchemaGraph completeTargetGraph
113113
OptimalEdit diffImpl(Mapping startMapping, List<Vertex> allSources, List<Vertex> allTargets) throws Exception {
114114
int graphSize = allSources.size();
115115

116-
long t1 = System.currentTimeMillis();
117116
int fixedEditorialCost = baseEditorialCostForMapping(startMapping, completeSourceGraph, completeTargetGraph);
118117
int level = startMapping.size();
119118

@@ -146,7 +145,7 @@ OptimalEdit diffImpl(Mapping startMapping, List<Vertex> allSources, List<Vertex>
146145
MappingEntry mappingEntry = queue.poll();
147146
count++;
148147
if (count % 1000 == 0) {
149-
System.out.println(mappingEntry.lowerBoundCost + " vs ged " + optimalEdit.ged + " count " + count + " time: " + (System.currentTimeMillis() - t) + " queue size " + queue.size() + " drop count " + dropCount);
148+
// System.out.println(mappingEntry.lowerBoundCost + " vs ged " + optimalEdit.ged + " count " + count + " time: " + (System.currentTimeMillis() - t) + " queue size " + queue.size() + " drop count " + dropCount);
150149
}
151150
if (mappingEntry.lowerBoundCost >= optimalEdit.ged) {
152151
dropCount++;

0 commit comments

Comments
 (0)