public function connect(string $source, string $destination): void
    {
        $outNode = $this->nodes[$source];
        $inNode = $this->nodes[$destination];

        $edge = new DocumentGraphEdge($outNode, $inNode);

        $outNode->addOutEdge($edge);
        $inNode->addInEdge($edge);
    }