Skip to content

Support native cloning of Graph object, remove all methods related to cloning and accessing cloned objects#183

Merged
clue merged 2 commits intographp:masterfrom
clue-labs:clone-graph
Oct 10, 2019
Merged

Support native cloning of Graph object, remove all methods related to cloning and accessing cloned objects#183
clue merged 2 commits intographp:masterfrom
clue-labs:clone-graph

Conversation

@clue
Copy link
Member

@clue clue commented Oct 9, 2019

// old
$new = $graph->createGraphClone();

// new replacement
$new = clone $graph;

// old (removed due to ambiguity and limited support)
$graph->createGraphCloneEdgeless();
$graph->createGraphCloneVertices($vertices);
$graph->createGraphCloneEdges($edges);
$graph->createVertexClone($vertex);
$graph->createEdgeClone($edge);
$graph->createEdgeCloneInverted($edge);
$graph->getEdgeClone($edge);
$graph->getEdgeCloneInverted($edge);

Among others, this done in preparation for #131 (also refs #58).
Builds on top of #177, #175 and others.

@clue clue added this to the v1.0.0 milestone Oct 9, 2019
@clue clue merged commit c20c759 into graphp:master Oct 10, 2019
@clue clue deleted the clone-graph branch November 27, 2019 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant