From b9be066e5faff79d6373ea25834f34ef213b81f4 Mon Sep 17 00:00:00 2001 From: Darrick Wiebe Date: Tue, 12 Nov 2013 21:35:44 -0500 Subject: [PATCH] expander seems to be immutable --- lib/pacer-neo4j/algo.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pacer-neo4j/algo.rb b/lib/pacer-neo4j/algo.rb index 76aaa7b..0aecc7f 100644 --- a/lib/pacer-neo4j/algo.rb +++ b/lib/pacer-neo4j/algo.rb @@ -358,13 +358,13 @@ def build_expander else e = Traversal.emptyExpander [*out_labels].each do |label| - e.add DynamicRelationshipType.withName(label.to_s), Direction::OUTGOING + e = e.add DynamicRelationshipType.withName(label.to_s), Direction::OUTGOING end [*in_labels].each do |label| - e.add DynamicRelationshipType.withName(label.to_s), Direction::INCOMING + e = e.add DynamicRelationshipType.withName(label.to_s), Direction::INCOMING end [*both_labels].each do |label| - e.add DynamicRelationshipType.withName(label.to_s), Direction::BOTH + e = e.add DynamicRelationshipType.withName(label.to_s), Direction::BOTH end e end