GUIDE
- Left-click and drag the background to move the graph
- Left-click and drag the nodes to reorganize
- Left-click a node to view first level connections
- Double left-click a node to navigate to its page
- Double left-click the background to zoom in
- Right-click the background to zoom out
sigma.utils.pkg('sigma.canvas.nodes');
sigma.canvas.nodes.image = (function() {
var _cache = {},
_loading = {},
_callbacks = {};
// Return the renderer itself:
var renderer = function(node, context, settings) {
var args = arguments,
prefix = settings('prefix') || '',
size = node[prefix + 'size'],
color = node.color || settings('defaultNodeColor'),
url = node.url;
if (_cache[url]) {
context.save();
// Draw the clipping disc:
context.beginPath();
context.arc(
node[prefix + 'x'],
node[prefix + 'y'],
node[prefix + 'size'],
0,
Math.PI * 2,
true
);
context.closePath();
context.clip();
// Draw the image
context.drawImage(
_cache[url],
node[prefix + 'x'] - size,
node[prefix + 'y'] - size,
2 * size,
2 * size
);
// Quit the "clipping mode":
context.restore();
// Draw the border:
context.beginPath();
context.arc(
node[prefix + 'x'],
node[prefix + 'y'],
node[prefix + 'size'],
0,
Math.PI * 2,
true
);
context.lineWidth = 1;
context.strokeStyle = node.color || settings('defaultNodeColor');
context.stroke();
} else {
sigma.canvas.nodes.image.cache(url);
sigma.canvas.nodes.def.apply(
sigma.canvas.nodes,
args
);
}
};
// Let's add a public method to cache images, to make it possible to
// preload images before the initial rendering:
renderer.cache = function(url, callback) {
if (callback)
_callbacks[url] = callback;
if (_loading[url])
return;
var img = new Image();
img.onload = function() {
_loading[url] = false;
_cache[url] = img;
if (_callbacks[url]) {
_callbacks[url].call(this, img);
delete _callbacks[url];
}
};
_loading[url] = true;
img.src = url;
};
return renderer;
})();
var i,
s,
o,
offset_left = 0.5,
N = 1,
E = 40,
C = 5,
d = 0.5,
cs = [],
g = {
nodes: [],
edges: []
};
if (!sigma.classes.graph.hasMethod('neighbors')){
sigma.classes.graph.addMethod('neighbors', function(nodeId) {
var k,
neighbors = {},
index = this.allNeighborsIndex[nodeId] || {};
for (k in index)
neighbors[k] = this.nodesIndex[k];
return neighbors;
});
}
//adding the central node
g.nodes.push({
id: 21589,
label: 'The institut Carnot Pasteur MS',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_bac-culture-150x150.jpg',
x: 0,
y: 0,
size: 30,
color: '#DDDDDD'
});
var x_node = Math.cos(2 * 0 * Math.PI / N) * 2;
var y_node = Math.sin(2 * 0 * Math.PI / N) * 2;
N=12
//check if content already exist
x_site = Math.cos(2 * 0 * Math.PI / N) * 2;
y_site = Math.sin(2 * 0 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 118894,
label: 'Marion Le Foll',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/01/research_pasteur-marion-le-foll-photo-portrait-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/marion-le-foll/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 21589118894,
size: 0.5,
source: 21589,
target: 118894 });
//check if content already exist
x_site = Math.cos(2 * 1 * Math.PI / N) * 2;
y_site = Math.sin(2 * 1 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 148720,
label: 'Iman Wanis',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/10/research_pasteur-iman-wanis-photo-big-1-e1617484578611-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/fr-iman-wanis/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 21589148720,
size: 0.5,
source: 21589,
target: 148720 });
//check if content already exist
x_site = Math.cos(2 * 2 * Math.PI / N) * 2;
y_site = Math.sin(2 * 2 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 388,
label: 'Jean-Christophe Olivo-Marin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/04/research_pasteur-photojcom_2016_2-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/jean-christophe-olivo-marin/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 21589388,
size: 0.5,
source: 21589,
target: 388 });
//check if content already exist
x_site = Math.cos(2 * 3 * Math.PI / N) * 2;
y_site = Math.sin(2 * 3 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 7071,
label: 'Isabelle Buckle',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/isabelle-buckle/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 215897071,
size: 0.5,
source: 21589,
target: 7071 });
//check if content already exist
x_site = Math.cos(2 * 4 * Math.PI / N) * 2;
y_site = Math.sin(2 * 4 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 4107,
label: 'Christophe D’Enfert',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/denfert_0-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/christophe-denfert/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 215894107,
size: 0.5,
source: 21589,
target: 4107 });
//check if content already exist
x_site = Math.cos(2 * 5 * Math.PI / N) * 2;
y_site = Math.sin(2 * 5 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 58995,
label: 'Mallory Perrin-Wolff',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/05/research_pasteur-mallory-perrin-wolff-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/mallory-perrin-wolff/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 2158958995,
size: 0.5,
source: 21589,
target: 58995 });
//check if content already exist
x_site = Math.cos(2 * 6 * Math.PI / N) * 2;
y_site = Math.sin(2 * 6 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 4987,
label: 'Chiara Zurzolo',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/11/research_pasteur-chiara-zurzolo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/chiara-zurzolo/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 215894987,
size: 0.5,
source: 21589,
target: 4987 });
//check if content already exist
x_site = Math.cos(2 * 7 * Math.PI / N) * 2;
y_site = Math.sin(2 * 7 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 4977,
label: 'Christophe Zimmer',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-christophe-zimmer-chz-photo-resized-bw-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/christophe-zimmer/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 215894977,
size: 0.5,
source: 21589,
target: 4977 });
//check if content already exist
x_site = Math.cos(2 * 8 * Math.PI / N) * 2;
y_site = Math.sin(2 * 8 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 103214,
label: 'Frédéric Barras',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/04/research_pasteur-f-barras-1-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/frederic-barras/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 21589103214,
size: 0.5,
source: 21589,
target: 103214 });
//check if content already exist
x_site = Math.cos(2 * 9 * Math.PI / N) * 2;
y_site = Math.sin(2 * 9 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 4109,
label: 'Guilhem Janbon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/10/research_pasteur-img_0255r-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/guilhem-janbon/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 215894109,
size: 0.5,
source: 21589,
target: 4109 });
//check if content already exist
x_site = Math.cos(2 * 10 * Math.PI / N) * 2;
y_site = Math.sin(2 * 10 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 4848,
label: 'Gérald Spaeth',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-gerald-spaeth-portrait-gfs-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/gerald-spaeth/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 215894848,
size: 0.5,
source: 21589,
target: 4848 });
//check if content already exist
x_site = Math.cos(2 * 11 * Math.PI / N) * 2;
y_site = Math.sin(2 * 11 * Math.PI / N) * 2;
// adding site
g.nodes.push({
id: 4920,
label: 'Sylvie van Der Werf',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/07/research_pasteur-photo_sylvie-vdw1-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/sylvie-van-der-werf/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 215894920,
size: 0.5,
source: 21589,
target: 4920 });
N=58
// update positions
x_node = Math.cos(2 * 0 * Math.PI / N) * 10;
y_node = Math.sin(2 * 0 * Math.PI / N) * 10;
// adding node
var x_node = Math.cos(2 * 0 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 0 * Math.PI / N) * 10;
g.nodes.push({
id: 96449,
label: 'TEAM: Molecular Genetics and Epigenetics',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/team/molecular-genetics-and-epigenetics/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2158996449,
size: 0.5,
source: 21589,
target: 96449 });
// adding node
var x_node = Math.cos(2 * 1 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 1 * Math.PI / N) * 10;
g.nodes.push({
id: 94012,
label: 'TEAM: Photonic BioImaging (UTechS PBI)',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2014/09/Neuron-spark-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/photonic-bioimaging-utechs-pbi/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2158994012,
size: 0.5,
source: 21589,
target: 94012 });
// adding node
var x_node = Math.cos(2 * 2 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 2 * Math.PI / N) * 10;
g.nodes.push({
id: 93967,
label: 'TEAM: Ultrastructural BioImaging',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/02/ultrastruc-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/ultrastructural-bioimaging-core-facility/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2158993967,
size: 0.5,
source: 21589,
target: 93967 });
// adding node
var x_node = Math.cos(2 * 3 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 3 * Math.PI / N) * 10;
g.nodes.push({
id: 65503,
label: 'TEAM: Group : Régis Tournebize',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/team/group-regis-tournebize/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2158965503,
size: 0.5,
source: 21589,
target: 65503 });
// adding node
var x_node = Math.cos(2 * 4 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 4 * Math.PI / N) * 10;
g.nodes.push({
id: 65482,
label: 'TEAM: Group : Valérie Choumet',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/team/group-valerie-choumet/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2158965482,
size: 0.5,
source: 21589,
target: 65482 });
// adding node
var x_node = Math.cos(2 * 5 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 5 * Math.PI / N) * 10;
g.nodes.push({
id: 65444,
label: 'TEAM: Virus sensing and signaling',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/team/virus-sensing-and-signaling/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2158965444,
size: 0.5,
source: 21589,
target: 65444 });
// adding node
var x_node = Math.cos(2 * 6 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 6 * Math.PI / N) * 10;
g.nodes.push({
id: 64141,
label: 'TEAM: Trypanosome Molecular Biology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/02/research.pasteur.fr_institutpasteur_42122-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/trypanosomes-molecular-biology/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2158964141,
size: 0.5,
source: 21589,
target: 64141 });
// adding node
var x_node = Math.cos(2 * 7 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 7 * Math.PI / N) * 10;
g.nodes.push({
id: 53310,
label: 'TEAM: Tech Lab',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_tech-lab-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/tech-lab/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2158953310,
size: 0.5,
source: 21589,
target: 53310 });
// adding node
var x_node = Math.cos(2 * 8 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 8 * Math.PI / N) * 10;
g.nodes.push({
id: 29245,
label: 'TEAM: Collection of Cyanobacteria',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_16543-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/collection-of-cyanobacteria/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2158929245,
size: 0.5,
source: 21589,
target: 29245 });
// adding node
var x_node = Math.cos(2 * 9 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 9 * Math.PI / N) * 10;
g.nodes.push({
id: 24345,
label: 'TEAM: Group: Trypanosome transmission',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_trypanosome-cell-biology-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/group-brice-rotureau/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2158924345,
size: 0.5,
source: 21589,
target: 24345 });
// adding node
var x_node = Math.cos(2 * 10 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 10 * Math.PI / N) * 10;
g.nodes.push({
id: 24312,
label: 'TEAM: RNA Biology of Fungal Pathogens',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_institutpasteur_i00638-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/rna-biology-of-fungal-pathogens/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2158924312,
size: 0.5,
source: 21589,
target: 24312 });
// adding node
var x_node = Math.cos(2 * 11 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 11 * Math.PI / N) * 10;
g.nodes.push({
id: 24119,
label: 'TEAM: Malaria Infection & Immunity',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_malaria-biology-and-genetics-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/malaria-infection-immunity/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2158924119,
size: 0.5,
source: 21589,
target: 24119 });
// adding node
var x_node = Math.cos(2 * 12 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 12 * Math.PI / N) * 10;
g.nodes.push({
id: 15050,
label: 'TEAM: Chemogenomic and Biological Screening Platform (PF-CCB)',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_14287-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/fabrice-agou-team/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 2158915050,
size: 0.5,
source: 21589,
target: 15050 });
// adding node
var x_node = Math.cos(2 * 13 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 13 * Math.PI / N) * 10;
g.nodes.push({
id: 6462,
label: 'TEAM: Membrane Traffic and Cell Division',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_mtra-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/membrane-traffic-and-cell-division/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896462,
size: 0.5,
source: 21589,
target: 6462 });
// adding node
var x_node = Math.cos(2 * 14 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 14 * Math.PI / N) * 10;
g.nodes.push({
id: 6107,
label: 'TEAM: Microbial Individuality and Infection',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/09/research.pasteur.fr_m.tuberculosis_metabolicreporter_mergedfluorescenceimage-3-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/microbial-individuality-and-infection/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896107,
size: 0.5,
source: 21589,
target: 6107 });
// adding node
var x_node = Math.cos(2 * 15 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 15 * Math.PI / N) * 10;
g.nodes.push({
id: 6120,
label: 'TEAM: Synthetic Biology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_i03590-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/synthetic-biology/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896120,
size: 0.5,
source: 21589,
target: 6120 });
// adding node
var x_node = Math.cos(2 * 16 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 16 * Math.PI / N) * 10;
g.nodes.push({
id: 6122,
label: 'TEAM: Immunology of Fungal Infections',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_2gj7w5xc-1372179603-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/immunology-of-fungal-infections/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896122,
size: 0.5,
source: 21589,
target: 6122 });
// adding node
var x_node = Math.cos(2 * 17 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 17 * Math.PI / N) * 10;
g.nodes.push({
id: 6126,
label: 'TEAM: Trypanosomatids Infectious Processes',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_trypanosoma-infectious-processes-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/trypanosoma-infectious-processes/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896126,
size: 0.5,
source: 21589,
target: 6126 });
// adding node
var x_node = Math.cos(2 * 18 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 18 * Math.PI / N) * 10;
g.nodes.push({
id: 6129,
label: 'TEAM: Macromolecular Systems',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_i01540-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/macromolecular-systems-and-signaling/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896129,
size: 0.5,
source: 21589,
target: 6129 });
// adding node
var x_node = Math.cos(2 * 19 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 19 * Math.PI / N) * 10;
g.nodes.push({
id: 6139,
label: 'TEAM: Cell Polarity, Migration And Cancer',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_cell-polarity-migration-and-cancer-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/cell-polarity-migration-and-cancer__trashed/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896139,
size: 0.5,
source: 21589,
target: 6139 });
// adding node
var x_node = Math.cos(2 * 20 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 20 * Math.PI / N) * 10;
g.nodes.push({
id: 6140,
label: 'TEAM: Membrane Traffic and Pathogenesis',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_golgi-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/membrane-traffic-and-pathogenesis/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896140,
size: 0.5,
source: 21589,
target: 6140 });
// adding node
var x_node = Math.cos(2 * 21 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 21 * Math.PI / N) * 10;
g.nodes.push({
id: 6141,
label: 'TEAM: Cellular Biology of Microbial Infection',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_biology-of-cell-interactions-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/cellular-biology-of-microbial-infection/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896141,
size: 0.5,
source: 21589,
target: 6141 });
// adding node
var x_node = Math.cos(2 * 22 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 22 * Math.PI / N) * 10;
g.nodes.push({
id: 6134,
label: 'TEAM: Dynamics of Host-Pathogen Interactions',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_453295a-f1.2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/dynamics-of-host-pathogen-interactions/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896134,
size: 0.5,
source: 21589,
target: 6134 });
// adding node
var x_node = Math.cos(2 * 23 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 23 * Math.PI / N) * 10;
g.nodes.push({
id: 6135,
label: 'TEAM: Imaging and Modeling',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_superres-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/imaging-and-modeling/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896135,
size: 0.5,
source: 21589,
target: 6135 });
// adding node
var x_node = Math.cos(2 * 24 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 24 * Math.PI / N) * 10;
g.nodes.push({
id: 6137,
label: 'TEAM: Nuclear Organization and Oncogenesis',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/03/research_pasteur-photo-unite-anne-dejean-2018-150x150.png',
page_url: 'https://research.pasteur.fr/en/team/nuclear-organization-and-oncogenesis/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896137,
size: 0.5,
source: 21589,
target: 6137 });
// adding node
var x_node = Math.cos(2 * 25 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 25 * Math.PI / N) * 10;
g.nodes.push({
id: 6157,
label: 'TEAM: Biology Of Intracellular Bacteria',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_biology-of-intracellular-bacteria-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/biology-of-intracellular-bacteria/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896157,
size: 0.5,
source: 21589,
target: 6157 });
// adding node
var x_node = Math.cos(2 * 26 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 26 * Math.PI / N) * 10;
g.nodes.push({
id: 6160,
label: 'TEAM: Human Evolutionary Genetics',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_human-genetic-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/human-evolutionary-genetics/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896160,
size: 0.5,
source: 21589,
target: 6160 });
// adding node
var x_node = Math.cos(2 * 27 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 27 * Math.PI / N) * 10;
g.nodes.push({
id: 6186,
label: 'TEAM: Mathematical Modelling Of Infectious Diseases',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_mathematical-modeling-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/mathematical-modelling-of-infectious-diseases/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896186,
size: 0.5,
source: 21589,
target: 6186 });
// adding node
var x_node = Math.cos(2 * 28 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 28 * Math.PI / N) * 10;
g.nodes.push({
id: 6177,
label: 'TEAM: Immunobiology and Therapy',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-enimmunobiology-and-therapyfrimmunobiologie-et-therapie-institutpasteur-i04790-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/immunobiology-and-therapy/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896177,
size: 0.5,
source: 21589,
target: 6177 });
// adding node
var x_node = Math.cos(2 * 29 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 29 * Math.PI / N) * 10;
g.nodes.push({
id: 6182,
label: 'TEAM: Epidemiology and Modelling of Antibacterial Evasion (EMAE)',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_pharmacopepidemiology-and-infectious-diseases-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/epidemiology-and-modelling-of-bacterial-escape-to-antimicrobials/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896182,
size: 0.5,
source: 21589,
target: 6182 });
// adding node
var x_node = Math.cos(2 * 30 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 30 * Math.PI / N) * 10;
g.nodes.push({
id: 6178,
label: 'TEAM: Antibodies in Therapy and Pathology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_antibodies-in-therapy-and-pathology-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/antibodies-in-therapy-and-pathology/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896178,
size: 0.5,
source: 21589,
target: 6178 });
// adding node
var x_node = Math.cos(2 * 31 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 31 * Math.PI / N) * 10;
g.nodes.push({
id: 6180,
label: 'TEAM: Lyssavirus epidemiology and neuropathology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_lyssavirus-dynamics-and-host-adaptation-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/lyssavirus-epidemiology-and-neuropathology/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896180,
size: 0.5,
source: 21589,
target: 6180 });
// adding node
var x_node = Math.cos(2 * 32 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 32 * Math.PI / N) * 10;
g.nodes.push({
id: 6181,
label: 'TEAM: Biology of infection',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_biology-of-infection1-e1441559125111-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/biology-of-infection/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896181,
size: 0.5,
source: 21589,
target: 6181 });
// adding node
var x_node = Math.cos(2 * 33 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 33 * Math.PI / N) * 10;
g.nodes.push({
id: 6184,
label: 'TEAM: Invasive Bacterial Infections',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_invasive-bacterial-infections-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/invasive-bacterial-infections/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896184,
size: 0.5,
source: 21589,
target: 6184 });
// adding node
var x_node = Math.cos(2 * 34 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 34 * Math.PI / N) * 10;
g.nodes.push({
id: 6190,
label: 'TEAM: Biology and Genetics of Bacterial Cell Wall',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_biology-and-genetics-of-bacterial-cell-wall-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/biology-and-genetics-of-bacterial-cell-wall/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896190,
size: 0.5,
source: 21589,
target: 6190 });
// adding node
var x_node = Math.cos(2 * 35 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 35 * Math.PI / N) * 10;
g.nodes.push({
id: 6192,
label: 'TEAM: Biology of Spirochetes',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_i03655-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/biology-of-spirochetes/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896192,
size: 0.5,
source: 21589,
target: 6192 });
// adding node
var x_node = Math.cos(2 * 36 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 36 * Math.PI / N) * 10;
g.nodes.push({
id: 6193,
label: 'TEAM: Genetics of Biofilms',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/01/research_pasteur-unite-biofilm-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/genetics-of-biofilms/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896193,
size: 0.5,
source: 21589,
target: 6193 });
// adding node
var x_node = Math.cos(2 * 37 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 37 * Math.PI / N) * 10;
g.nodes.push({
id: 6195,
label: 'TEAM: Yersinia',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_yersinia-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/yersinia/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896195,
size: 0.5,
source: 21589,
target: 6195 });
// adding node
var x_node = Math.cos(2 * 38 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 38 * Math.PI / N) * 10;
g.nodes.push({
id: 6196,
label: 'TEAM: Fungal Biology and Pathogenicity',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_fungal-biology-and-pathogenicity2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/fungal-biology-and-pathogenicity/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896196,
size: 0.5,
source: 21589,
target: 6196 });
// adding node
var x_node = Math.cos(2 * 39 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 39 * Math.PI / N) * 10;
g.nodes.push({
id: 6209,
label: 'TEAM: Molecular Parasitology and Signaling',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_molecular-parasitology-and-signaling3-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/molecular-parasitology-and-signaling/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896209,
size: 0.5,
source: 21589,
target: 6209 });
// adding node
var x_node = Math.cos(2 * 40 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 40 * Math.PI / N) * 10;
g.nodes.push({
id: 6210,
label: 'TEAM: Malaria Parasite Biology and Vaccines',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_malaria-parasite-biology-and-vaccines-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/malaria-parasite-biology-and-vaccines/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896210,
size: 0.5,
source: 21589,
target: 6210 });
// adding node
var x_node = Math.cos(2 * 41 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 41 * Math.PI / N) * 10;
g.nodes.push({
id: 6211,
label: 'TEAM: Biology of Viral Emerging Infections',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_i04690-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/biology-of-viral-emerging-infections/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896211,
size: 0.5,
source: 21589,
target: 6211 });
// adding node
var x_node = Math.cos(2 * 42 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 42 * Math.PI / N) * 10;
g.nodes.push({
id: 6213,
label: 'TEAM: Oncogenic Virus Epidemiology and Pathophysiology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_oncogenic-virus-epidemiology-and-pathophysiology-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/oncogenic-virus-epidemiology-and-pathophysiology/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896213,
size: 0.5,
source: 21589,
target: 6213 });
// adding node
var x_node = Math.cos(2 * 43 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 43 * Math.PI / N) * 10;
g.nodes.push({
id: 6205,
label: 'TEAM: Trypanosome Cell Biology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_trypanosome-cell-biology-4-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/trypanosome-cell-biology/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896205,
size: 0.5,
source: 21589,
target: 6205 });
// adding node
var x_node = Math.cos(2 * 44 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 44 * Math.PI / N) * 10;
g.nodes.push({
id: 6206,
label: 'TEAM: Biology of Host-parasite Interactions',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_39695-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/biology-of-host-parasite-interactions/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896206,
size: 0.5,
source: 21589,
target: 6206 });
// adding node
var x_node = Math.cos(2 * 45 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 45 * Math.PI / N) * 10;
g.nodes.push({
id: 6223,
label: 'TEAM: Structural Virology',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/team/structural-virology/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896223,
size: 0.5,
source: 21589,
target: 6223 });
// adding node
var x_node = Math.cos(2 * 46 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 46 * Math.PI / N) * 10;
g.nodes.push({
id: 6224,
label: 'TEAM: Virus and Immunity',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_40763-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/virus-and-immunity/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896224,
size: 0.5,
source: 21589,
target: 6224 });
// adding node
var x_node = Math.cos(2 * 47 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 47 * Math.PI / N) * 10;
g.nodes.push({
id: 6225,
label: 'TEAM: Viruses and RNA Interference',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_i02257-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/viruses-and-rna-interference/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896225,
size: 0.5,
source: 21589,
target: 6225 });
// adding node
var x_node = Math.cos(2 * 48 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 48 * Math.PI / N) * 10;
g.nodes.push({
id: 6226,
label: 'TEAM: HIV, Inflammation and Persistence',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_duo-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/hiv-inflammation-and-persistence/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896226,
size: 0.5,
source: 21589,
target: 6226 });
// adding node
var x_node = Math.cos(2 * 49 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 49 * Math.PI / N) * 10;
g.nodes.push({
id: 6227,
label: 'TEAM: Enteric Bacterial Pathogens',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/01/research_pasteur-unite_fx-weill_institutpasteur_13946-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/enteric-bacterial-pathogens/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896227,
size: 0.5,
source: 21589,
target: 6227 });
// adding node
var x_node = Math.cos(2 * 50 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 50 * Math.PI / N) * 10;
g.nodes.push({
id: 6228,
label: 'TEAM: Environment and Infectious Risks',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_i03450-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/environment-and-infectious-risks/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896228,
size: 0.5,
source: 21589,
target: 6228 });
// adding node
var x_node = Math.cos(2 * 51 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 51 * Math.PI / N) * 10;
g.nodes.push({
id: 6229,
label: 'TEAM: Epidemiology of Emerging Diseases',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_electron-micrograph-of-ebola-virus-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/epidemiology-of-emerging-diseases/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896229,
size: 0.5,
source: 21589,
target: 6229 });
// adding node
var x_node = Math.cos(2 * 52 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 52 * Math.PI / N) * 10;
g.nodes.push({
id: 6232,
label: 'TEAM: Arboviruses and Insect Vectors',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_arboviruses-and-insect-vectors-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/arboviruses-and-insect-vectors/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215896232,
size: 0.5,
source: 21589,
target: 6232 });
// adding node
var x_node = Math.cos(2 * 53 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 53 * Math.PI / N) * 10;
g.nodes.push({
id: 2665,
label: 'TEAM: Biomics',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/03/genetic-strand-9.25.14-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/biomics/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215892665,
size: 0.5,
source: 21589,
target: 2665 });
// adding node
var x_node = Math.cos(2 * 54 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 54 * Math.PI / N) * 10;
g.nodes.push({
id: 1110,
label: 'TEAM: Center for the Production and Infection of Anopheles',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/02/research.pasteur.fr_center-for-production-and-infection-of-anopheles1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/center-for-production-and-infection-of-anopheles/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215891110,
size: 0.5,
source: 21589,
target: 1110 });
// adding node
var x_node = Math.cos(2 * 55 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 55 * Math.PI / N) * 10;
g.nodes.push({
id: 1072,
label: 'TEAM: Proteomics',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/02/P53-Protein-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/proteomics/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 215891072,
size: 0.5,
source: 21589,
target: 1072 });
// adding node
var x_node = Math.cos(2 * 56 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 56 * Math.PI / N) * 10;
g.nodes.push({
id: 517,
label: 'TEAM: Biological Image Analysis',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2014/12/grid01-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/bioimage-analysis/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 21589517,
size: 0.5,
source: 21589,
target: 517 });
// adding node
var x_node = Math.cos(2 * 57 * Math.PI / N) * 10;
var y_node = Math.sin(2 * 57 * Math.PI / N) * 10;
g.nodes.push({
id: 345,
label: 'TEAM: Bacteria-Cell Interactions',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2014/11/research.pasteur.fr_bacteria-cell-interactions-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/bacteria-cell-interactions/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 21589345,
size: 0.5,
source: 21589,
target: 345 });
var s = new sigma({
//container: document.getElementById('graph-main'),
graph: g,
renderer: {
// IMPORTANT:
// This works only with the canvas renderer, so the
// renderer type set as "canvas" is necessary here.
container: document.getElementById('graph-main'),
type: 'canvas'
},
settings: {
minNodeSize: 6,
maxNodeSize: 30,
mouseWheelEnabled: false,
font: 'Montserrat',
labelThreshold:25,
borderSize:1,
defaultNodeBorderColor: '#333',
sideMargin:25,
}
});
// We first need to save the original colors of our
// nodes and edges, like this:
s.graph.nodes().forEach(function(n) {
n.originalColor = n.color;
//console.log(n.id);
//console.log(s.graph.nodes(n.id));
});
s.graph.edges().forEach(function(e) {
e.originalColor = e.color;
});
// When a node is clicked, we check for each node
// if it is a neighbor of the clicked one. If not,
// we set its color as grey, and else, it takes its
// original color.
// We do the same for the edges, and we only keep
// edges that have both extremities colored.
s.bind('clickNode', function(e) {
var nodeId = e.data.node.id,
toKeep = s.graph.neighbors(nodeId);
toKeep[nodeId] = e.data.node;
s.graph.nodes().forEach(function(n) {
if (toKeep[n.id])
n.color = '#35a9f5';
else
n.color = '#dddddd';
});
s.graph.edges().forEach(function(e) {
if (toKeep[e.source] && toKeep[e.target])
e.color = '#35a9f5';
else
e.color = '#dddddd';
});
// Since the data has been modified, we need to
// call the refresh method to make the colors
// update effective.
s.refresh();
});
// When the stage is clicked, we just color each
// node and edge with its original color.
s.bind('clickStage', function(e) {
s.graph.nodes().forEach(function(n) {
n.color = n.originalColor;
});
s.graph.edges().forEach(function(e) {
e.color = e.originalColor;
});
// Same as in the previous event:
s.refresh();
});
s.bind("doubleClickNode", function (e) {
$("#canvas-wrap, .sigma-scene, .sigma-mouse").val();
ajax_load_page( e.data.node.page_url );
});
var c = s.camera;
s.bind("rightClickStage", function (e) {
sigma.misc.animation.camera(c, {
ratio: c.ratio * c.settings('zoomingRatio')
}, {
duration: 200
});
});
// Configure the noverlap layout:
var noverlapListener = s.configNoverlap({
nodeMargin: 5,
scaleNodes: 0.3,
gridSize: 1,
easing: 'quadraticInOut', // animation transition function
duration: 4000 // animation duration. Long here for the purposes of this example only
});
// Bind the events:
noverlapListener.bind('start stop interpolate', function(e) {
//console.log(e.type);
if(e.type === 'start') {
//console.time('noverlap');
}
if(e.type === 'interpolate') {
//console.timeEnd('noverlap');
}
});
// Start the layout:
s.startNoverlap();
//s.refresh();
// Initialize the dragNodes plugin:
var dragListener = sigma.plugins.dragNodes(s, s.renderers[0]);
dragListener.bind('startdrag', function(event) {
});
dragListener.bind('drag', function(event) {
});
dragListener.bind('drop', function(event) {
});
dragListener.bind('dragend', function(event) {
});