This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"address":"12376 Washington Boulevard, Whittier, CA, United States", | |
"verb":"checkin", | |
"kind":"plus#activity", | |
"title":"In need of a morning boost", | |
"actor":{ | |
"displayName":"Alain Dominguez", | |
"url":"https://plus.google.com/117083688455135800465", | |
"id":"117083688455135800465", | |
"image":{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Add the function to the public prototype : | |
*/ | |
sigma.publicPrototype.outDegreeToSize = function() { | |
this.iterNodes(function(node){ | |
node.size = node.outDegree; | |
}).draw(); | |
}; | |
/* |