Méthode | Description | |
---|---|---|
ensureArc ( object $tail, object $head ) : Gliph\Graph\MutableDigraph | Ensures the provided arc (directed edge) is present in this graph. | |
removeArc ( $tail, $head ) : Gliph\Graph\MutableDigraph | Removes an arc from the graph. |
public ensureArc ( object $tail, object $head ) : Gliph\Graph\MutableDigraph | ||
$tail | object | An object vertex from which the edge originates. The vertex will be added to the graph if it is not already present. |
$head | object | An object vertex to which the edge points. The vertex will be added to the graph if it is not already present. |
Résultat | Gliph\Graph\MutableDigraph | The current graph instance. |
public removeArc ( $tail, $head ) : Gliph\Graph\MutableDigraph | ||
$tail | The tail vertex in the arc to remove. | |
$head | The head vertex in the arc to remove. | |
Résultat | Gliph\Graph\MutableDigraph | The current graph instance. |