Skip to content

Conversation

@gyim1345
Copy link
Collaborator

@gyim1345 gyim1345 commented Jan 8, 2021

구현한 메서드

  • add edge
  • add vertex
  • remove vertex
  • remove edge
  • has vertex
  • has edge

add edge
add vertex
remove vertex
remove edge
has vertex
has edge
Copy link
Member

@Woomin-Jeon Woomin-Jeon left a comment

Choose a reason for hiding this comment

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

깔끔하게 잘 구현하신 것 같습니다! 수고하셨슴다~~

Comment on lines +35 to +37
Copy link
Member

Choose a reason for hiding this comment

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

filter 대신 find를 쓰면 조금 더 명시적일 것 같습니다!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

filter 하나로 퉁 칠려고 했는데 명시적으로 쓰기 위해서 find 와 filter 둘다 쓰는게 좋을까요?

Comment on lines +65 to +66
Copy link
Member

Choose a reason for hiding this comment

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

if (this.map.has(a)) { ... }

요렇게 퉁쳐도 될 것 같네여!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

👍
아 이 부분 사실 바로 밑줄에 this.map.get(a) 를 한번 더 써서 변수에 담아서 쓸려고 했는데 정작 변수에 담아 놓고 안썼네요 ㅋㅋ...
한번 더 쓰게 되면 변수에 담아서 쓰는게 좋겠죠?

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants