public function addOutgoing(EdgeInterface $edge): void
    {
            $edge_encapsulated = EncapsulatedEdge::fromEdge($edge);
            $this->to[(string) $edge->head()->id()][(string) $edge->id()] = $edge_encapsulated;
            $this->out[(string) $edge->id()] = $edge_encapsulated;
            $this->master->emit("modified");
    }
public function addOutgoing(EdgeInterface $edge): void
    {
            $edge_encapsulated = EncapsulatedEdge::fromEdge($edge);
            $this->to[(string) $edge->head()->id()][(string) $edge->id()] = $edge_encapsulated;
            $this->out[(string) $edge->id()] = $edge_encapsulated;
            $this->master->emit("modified");
    }
public function addOutgoing ( EdgeInterface $ edge ) : void { $ edge_encapsulated = EncapsulatedEdge :: fromEdge ( $ edge ) ; $ this -> to [ ( string ) $ edge -> head ( ) -> id ( ) ] [ ( string ) $ edge -> id ( ) ] = $ edge_encapsulated ; $ this -> out [ ( string ) $ edge -> id ( ) ] = $ edge_encapsulated ; $ this -> master -> emit ( "modified" ) ; }
Adds an outgoing edge to the list.

The edge must be already initialized.

@param EdgeInterface $edge

@return void
Adds an outgoing edge to the list .