@@ -43,6 +43,10 @@ discard block |
||
| 43 | 43 | return $node; |
| 44 | 44 | } |
| 45 | 45 | |
| 46 | + /** |
|
| 47 | + * @param integer $id |
|
| 48 | + * @param string $type |
|
| 49 | + */ |
|
| 46 | 50 | protected function build_node($id, $type, array $properties = null) { |
| 47 | 51 | return new Node($id, $type, $properties); |
| 48 | 52 | } |
@@ -64,7 +68,7 @@ discard block |
||
| 64 | 68 | * Get nodes from the graph, maybe filtered by a filter. |
| 65 | 69 | * |
| 66 | 70 | * @param Predicate|null $filter |
| 67 | - * @return Iterator <Node> |
|
| 71 | + * @return \Generator <Node> |
|
| 68 | 72 | */ |
| 69 | 73 | public function nodes(Predicate $filter = null) { |
| 70 | 74 | if ($filter !== null) { |