March 2019
Intermediate to advanced
336 pages
9h 9m
English
The NewSocialGraph function creates a social graph given num, which is the size of the graph. Size is the number of links in the graph:
// NewSocialGraph methodfunc NewSocialGraph(num int) *SocialGraph { return &SocialGraph{ Size: num, Links: make([][]Link, num), }}
Read now
Unlock full access