Skip to content

Update Documentation for Directed Edges (createEdgeDirected method) #69

@antonioacampos

Description

@antonioacampos

I noticed that the current documentation for the Graphp/GraphViz library shows the use of the method createEdgeDirected to create directed edges from a Graph object, like this:
$graph = new Graphp\Graph\Graph();

$edge = $graph->createEdgeDirected($blue, $red);
However, it seems that the library has been updated, and the method createEdgeDirected no longer exists. Now, edges can be created from vertices using createEdgeTo instead, as shown below:

$transitionVertex = $graph->createVertex($transitionName);
$transitionVertex->createEdgeTo($toPlace);

It would be great to update the documentation to reflect this change, so that developers can follow the current implementation more easily. I am happy to help with this update if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions