Skip to content

Move creating edges to Graph#175

Merged
clue merged 1 commit intographp:masterfrom
clue-labs:createedge
Oct 4, 2019
Merged

Move creating edges to Graph#175
clue merged 1 commit intographp:masterfrom
clue-labs:createedge

Conversation

@clue
Copy link
Member

@clue clue commented Oct 3, 2019

The new API is now much more consistent with all other create*()
methods and makes the distinction between undirected and directed edges
more explicit:

// old
$v1->createEdge($v2);
$v1->createEdgeTo($v2);

// new
$graph->createEdgeUndirected($v1, $v2);
$graph->createEdgeDirected($v1, $v2);

The new API is now much more consistent with all other `create*()`
methods and makes the distinction between undirected and directed edges
more explicit:

```
// old
$v1->createEdge($v2);
$v1->createEdgeTo($v2);

// new
$graph->createEdgeUndirected($v1, $v2);
$graph->createEdgeDirected($v1, $v2);
```
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