Skip to content

Add clone method to SGraph #16

@NotMixu

Description

@NotMixu
const sgraph = new SGraph(...);
const clonedSgraph = sgraph.clone();

sgraph.rootNode.name = "some name";
clonedSgraph.rootNode.name = "some other name";

assert(sgraph.rootNode.name !== clonedSgraph.rootNode.name);

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions