@graphty/algorithms 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -18476,7 +18476,7 @@ function checkUniqueColumn(table, column) {
|
|
|
18476
18476
|
throw err;
|
|
18477
18477
|
}
|
|
18478
18478
|
}
|
|
18479
|
-
const WIRE_PRODUCER = `@graphty/graph-format@${"
|
|
18479
|
+
const WIRE_PRODUCER = `@graphty/graph-format@${"5290d3c12aaf"}`;
|
|
18480
18480
|
const SCALAR_VIEWS = /* @__PURE__ */ new Set(["totalWeight", "symmetric"]);
|
|
18481
18481
|
const encoder = new TextEncoder();
|
|
18482
18482
|
function assertLittleEndianHost(littleEndian = IS_LITTLE_ENDIAN) {
|
|
@@ -22224,7 +22224,9 @@ class GraphBuilder {
|
|
|
22224
22224
|
return this.staging.edgeBound;
|
|
22225
22225
|
}
|
|
22226
22226
|
/**
|
|
22227
|
-
* Increments on every
|
|
22227
|
+
* Increments on every change that makes the next freeze() differ (topology, weights, cell and
|
|
22228
|
+
* column writes, declarations, graph values, meta, extension tables, record and graph merges);
|
|
22229
|
+
* freeze() itself does not count.
|
|
22228
22230
|
* @returns the count
|
|
22229
22231
|
*/
|
|
22230
22232
|
get mutationCount() {
|
|
@@ -22783,6 +22785,7 @@ class GraphBuilder {
|
|
|
22783
22785
|
buildGraphColumn(name, value, patch);
|
|
22784
22786
|
}
|
|
22785
22787
|
this.graphValues.set(name, { decl: patch, value });
|
|
22788
|
+
this.mutated();
|
|
22786
22789
|
}
|
|
22787
22790
|
/**
|
|
22788
22791
|
* Merge fields into the graph metadata (design section 5.9); undefined fields are left alone,
|
|
@@ -22792,6 +22795,7 @@ class GraphBuilder {
|
|
|
22792
22795
|
setMeta(meta) {
|
|
22793
22796
|
this.check();
|
|
22794
22797
|
this.metaValue = resolveGraphMeta$1(this.metaValue, meta);
|
|
22798
|
+
this.mutated();
|
|
22795
22799
|
}
|
|
22796
22800
|
/**
|
|
22797
22801
|
* Create an extension table (design section 5.10).
|
|
@@ -22818,6 +22822,7 @@ class GraphBuilder {
|
|
|
22818
22822
|
columns.push(column);
|
|
22819
22823
|
}
|
|
22820
22824
|
staging.extensions.push({ name, columns, rowCount: 0 });
|
|
22825
|
+
this.mutated();
|
|
22821
22826
|
return staging.extensions.length - 1;
|
|
22822
22827
|
}
|
|
22823
22828
|
/**
|
|
@@ -22846,6 +22851,7 @@ class GraphBuilder {
|
|
|
22846
22851
|
target.columns[i].write(row, checked[i]);
|
|
22847
22852
|
}
|
|
22848
22853
|
target.rowCount = row + 1;
|
|
22854
|
+
this.mutated();
|
|
22849
22855
|
return row;
|
|
22850
22856
|
}
|
|
22851
22857
|
/**
|
|
@@ -23009,6 +23015,7 @@ class GraphBuilder {
|
|
|
23009
23015
|
for (const [name, table] of snapshot.extensions) {
|
|
23010
23016
|
this.appendExtension(name, table, refs);
|
|
23011
23017
|
}
|
|
23018
|
+
this.mutated();
|
|
23012
23019
|
}
|
|
23013
23020
|
// ---------------------------------------------------------------- output and lifecycle
|
|
23014
23021
|
/**
|
|
@@ -23419,6 +23426,7 @@ class GraphBuilder {
|
|
|
23419
23426
|
return existing;
|
|
23420
23427
|
}
|
|
23421
23428
|
const columns = this.columnsOf(domain);
|
|
23429
|
+
this.mutated();
|
|
23422
23430
|
return this.pushColumn(columns, new StagingColumn(meta, false));
|
|
23423
23431
|
}
|
|
23424
23432
|
/**
|
|
@@ -23655,6 +23663,7 @@ class GraphBuilder {
|
|
|
23655
23663
|
if (widened !== null) {
|
|
23656
23664
|
this.widenings.push({ column: target.meta.name, domain, from: widened.from, to: widened.to });
|
|
23657
23665
|
}
|
|
23666
|
+
this.mutated();
|
|
23658
23667
|
}
|
|
23659
23668
|
/**
|
|
23660
23669
|
* Replace or create a column from a typed array (setNodeColumn / setEdgeColumn).
|
|
@@ -23681,6 +23690,7 @@ class GraphBuilder {
|
|
|
23681
23690
|
} else {
|
|
23682
23691
|
this.pushColumn(columns, column);
|
|
23683
23692
|
}
|
|
23693
|
+
this.mutated();
|
|
23684
23694
|
}
|
|
23685
23695
|
extensionOf(handle) {
|
|
23686
23696
|
const { extensions } = this.staging;
|