ADJACENCY_EQUIVALENT
ADJACENCY_EQUIVALENT = array("out" => "headID", "in" => "tailID") : array
Direction out: is equivalent to head nodes of an edge Direction in: is equivalent to tail nodes of an edge
"Has" Handler
handle(\Pho\Framework\ParticleInterface $particle, array $pack, \Pho\Framework\Handlers\string $name, array $args) : mixed
Catch-all method for hasers -hasSomething()-
\Pho\Framework\ParticleInterface | $particle | The particle that this handler is working on. |
array | $pack | Holds cargo variables extracted by loaders. |
\Pho\Framework\Handlers\string | $name | Catch-all method name |
array | $args | Catch-all method arguments |
"Has"=>bool. Get=>array. Set/Form=>\Pho\Lib\Graph\EdgeInterface by default, but in order to provide flexibility for higher-level components to return node (in need) the official return value is \Pho\Lib\Graph\EntityInterface which is the parent of both NodeInterface and EdgeInterface.
edgeMethodExists(array $pack, string $name, \Pho\Lib\Graph\ID $id, \Pho\Lib\Graph\Direction $direction) : boolean
Whether the given method is available for incoming or outgoing edges.
array | $pack | Holds incoming and outgoing cargos. |
string | $name | Method name. Queried among incoming and outgoing labels. |
\Pho\Lib\Graph\ID | $id | |
\Pho\Lib\Graph\Direction | $direction | Direction in question; in or out. |
edgeCallableExists(array $pack, string $name, \Pho\Lib\Graph\ID $id, \Pho\Lib\Graph\Direction $direction) : boolean
Whether the given method is available for incoming or outgoing edge callables.
array | $pack | Holds incoming and outgoing cargos. |
string | $name | Method name. Queried among incoming and outgoing labels. |
\Pho\Lib\Graph\ID | $id | |
\Pho\Lib\Graph\Direction | $direction | Direction in question; in or out. |
checkEdgeNode(\Pho\Framework\ParticleInterface $particle, array $pack, string $name, \Pho\Lib\Graph\ID $id, \Pho\Lib\Graph\Direction $direction) : boolean
"Has" Catcher for Edges
\Pho\Framework\ParticleInterface | $particle | The particle that this handler is associated with. |
array | $pack | Holds cargo variables extracted by loaders. |
string | $name | The edge node label in plural. |
\Pho\Lib\Graph\ID | $id | The ID of the node in question. |
\Pho\Lib\Graph\Direction | $direction | The direction of the edge adjacent nodes to look up. |
whether the node exists or not
checkEdgeItself(\Pho\Framework\ParticleInterface $particle, array $pack, string $name, \Pho\Lib\Graph\ID $id, \Pho\Lib\Graph\Direction $direction) : boolean
"Has" Catcher for Edge Callables
\Pho\Framework\ParticleInterface | $particle | The particle that this handler is associated with. |
array | $pack | Holds cargo variables extracted by loaders. |
string | $name | The edge node label in plural. |
\Pho\Lib\Graph\ID | $id | The ID of the node in question. |
\Pho\Lib\Graph\Direction | $direction | The direction of the edge adjacent nodes to look up. |
whether the node exists or not