Skip to content

Conversation

@ilya-volkov-ip51
Copy link

No description provided.

Copy link
Member

@tshemsedinov tshemsedinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. "realisation" ? Do you mean "implementation"?
  2. Do you use eslint before commit?

{
"esversion": 6,
"node": true
} No newline at end of file
Copy link
Member

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);
Copy link
Member

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],
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants