merge
takes a source graph and merges it into this graph.
New nodes and edges from the source graph are added.
Attributes (e.g. properties
, styles
, category
) of nodes with same id are copied.
Attributes (e.g. properties
, styles
, relationship
) of edges with same id are copied.
If deleteMissingNodesAndEdges is true, then any nodes and edges in the source graph that are not in the target graph (this graph) will be deleted.
If deleteMissingNodesAndEdges is false, then any nodes and edges in the source graph that are not in the target graph (this graph) will be kept.
replace
is like assign
but deletes nodes from the target that are not in the source graph.
replace
calls merge
with deleteMissingNodesAndEdges = true.
Useful when you want to replace the target graph with a transformed one.
Generated using TypeDoc
assign
copies the source graph into this graph, similar to Object.assign(target, source).assign
uses Object.assign to merge propeties and replaces node styles. Useful when you get a Neo4j result and want to overlay it on the graph workspace.