INNER CODE UNIT · JavaScript
configSigmaElements
KiranGershenfeld/VisualizingTwitchCommunities · Website/js/main.js:204
function configSigmaElements(config) {
$GP=config.GP;
// Node hover behaviour
if (config.features.hoverBehavior == "dim") {
var greyColor = '#ccc';
sigInst.bind('overnodes',function(event){
var nodes = event.content;
var neighbors = {};
sigInst.iterEdges(function(e){
if(nodes.indexOf(e.source)<0 && nodes.indexOf(e.target)<0){
if(!e.attr['grey']){
e.attr['true_color'] = e.color;
e.color = greyColor;
e.attr['grey'] = 1;
}
}else{