Skip to content

Commit f1ecb6a

Browse files
committed
Make sure that parent vertex exist.
1 parent bb6e292 commit f1ecb6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Exporter/Graph.php

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public function export(NodeInterface $node): OriginalGraph
5757

5858
/** @var int $hash_parent */
5959
$hash_parent = $this->createVertexId($parent);
60+
$this->createVertex($parent);
6061

6162
$this->getGraph()->getVertex($hash_parent)->createEdgeTo($this->getGraph()->getVertex($vertexId));
6263
}

0 commit comments

Comments
 (0)