-
Notifications
You must be signed in to change notification settings - Fork 16
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
Primitive graph realisation #1
base: master
Are you sure you want to change the base?
Primitive graph realisation #1
Conversation
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.
- "realisation" ? Do you mean "implementation"?
- Do you use eslint before commit?
{ | ||
"esversion": 6, | ||
"node": true | ||
} |
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.
Add newline at the end of file
console.dir(graph.incidence()); | ||
console.dir(graph.adjacency()); | ||
} catch (E) { | ||
console.dir(E.message); |
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.
Why do you use try/except here? Throw error will print message to console, why do you use console.dir instead?
@@ -0,0 +1,90 @@ | |||
/* | |||
Graph in constructor is represented like an array: | |||
[[n, m], |
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.
Not good idea to put n and m as first pair to array
No description provided.