Skip to content
Discussion options

You must be logged in to vote

Can you share some reproducible example for this? This is definitely undesired, and all nodes should have exactly k neighbors. Note that this function will not compute an undirected graph though, as the neighbors for two nearby nodes may be different.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@AmEskandari
Comment options

@rusty1s
Comment options

@AmEskandari
Comment options

@rusty1s
Comment options

@AmEskandari
Comment options

Answer selected by AmEskandari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants