@eramux/graph-structure
Advanced tools
Comparing version 0.1.5 to 0.2.0
@@ -39,4 +39,5 @@ declare type NodeId = string; | ||
serialize(): Serialized; | ||
deserialize(serialized: Serialized): void; | ||
reset(): void; | ||
deserialize(serialized: Serialized, reset?: boolean): void; | ||
} | ||
export {}; |
@@ -293,3 +293,9 @@ "use strict"; | ||
} | ||
deserialize(serialized) { | ||
reset() { | ||
this.edges.clear(); | ||
} | ||
deserialize(serialized, reset = false) { | ||
if (reset) { | ||
this.reset(); | ||
} | ||
serialized.nodes.forEach((node) => { | ||
@@ -296,0 +302,0 @@ this.addNode(node.id); |
{ | ||
"name": "@eramux/graph-structure", | ||
"version": "0.1.5", | ||
"version": "0.2.0", | ||
"description": "Typescript graph structure library for common graph operations", | ||
@@ -5,0 +5,0 @@ "main": "dist/Graph.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36187
350