-
Notifications
You must be signed in to change notification settings - Fork 25
added path support #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
test/pathBuilder.js
Outdated
| @@ -0,0 +1,35 @@ | |||
| Node = require("../src/node"); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const Node = require("../src/node"),
Edge = require("../src/edge"),
Path = require("../src/path");
test/pathBuilder.js
Outdated
| @@ -0,0 +1,35 @@ | |||
| Node = require("../src/node"); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Node = require("../src/node"),
Edge = require("../src/edge"),
Path = require("../src/path");
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where?
test/pathBuilder.js
Outdated
| @@ -0,0 +1,35 @@ | |||
| Node = require("../src/node"); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const Statistics = require("./statistics"),
Record = require("./record"),
Node = require("./node"),
Edge = require("./edge"),
Path = require("./path"),
ReplyError = require("redis").ReplyError;
test/redisGraphAPITest.js
Outdated
| redis = require("redis"), | ||
| Label = require("../src/label"), | ||
| RedisGraph = require("../src/graph"); | ||
| PathBuilder = require("./pathBuilder"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where?
| return this.edges; | ||
| } | ||
|
|
||
| getNode(index){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should you use gettter/setter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please elaborate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is a property getter, so done, for every zero parametes function
Codecov Report
@@ Coverage Diff @@
## master #25 +/- ##
==========================================
- Coverage 93.67% 90.09% -3.58%
==========================================
Files 5 6 +1
Lines 79 101 +22
Branches 6 6
==========================================
+ Hits 74 91 +17
- Misses 5 10 +5
Continue to review full report at Codecov.
|
src/resultSet.js
Outdated
| Record = require("./record"); | ||
| Node = require("./node"); | ||
| Edge = require("./edge"); | ||
| Path = require("./path"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
test/pathBuilder.js
Outdated
| @@ -0,0 +1,35 @@ | |||
| Node = require("../src/node"); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where?
test/redisGraphAPITest.js
Outdated
| redis = require("redis"), | ||
| Label = require("../src/label"), | ||
| RedisGraph = require("../src/graph"); | ||
| PathBuilder = require("./pathBuilder"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where?
| this.edges = edges; | ||
| } | ||
|
|
||
| get Nodes(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DvirDukhan capital letter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
|
|
||
| class PathBuilder { | ||
| constructor(nodeCount){ | ||
| this.nodes = new Array(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.nodes = [];
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
added path support
add deepequal dependency https://www.npmjs.com/package/deep-equal for easier comparisons.