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: 160139,
label: 'Institut de l’Audition – Centre de l’Institut Pasteur',
type: 'image',
url: '',
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=3
//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: 173181,
label: 'Anne-Lise Giraud',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/01/research_pasteur-anne-lise-giraud-alg-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/anne-lise-mamessier-giraud/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160139173181,
size: 0.5,
source: 160139,
target: 173181 });
//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: 188718,
label: 'Anne-Dominique Lodeho-Devauchelle',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/10/research_pasteur-anne-dominique-lodeho-devauchelle-photoadlodeho-201903-recadree2-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/anne-dominique-lodeho-devauchelle/',
x: x_site,
y: y_site,
size: 10,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160139188718,
size: 0.5,
source: 160139,
target: 188718 });
N=13
// 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: 182351,
label: 'TEAM: Plateforme d’Acquisition et Traitement du Signal de l’Institut de l’Audition',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/hearing-institute-data-acquisition-and-signal-processing-facility/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 160139182351,
size: 0.5,
source: 160139,
target: 182351 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: ,
label: 'Ajax Graph',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/ajax-graph/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 182351,
size: 0.5,
source: 182351,
target: });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 182349,
label: 'Clara Dussaux',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/06/research_pasteur-clara-dussaux-photoid-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/clara-dussaux/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 182351182349,
size: 0.5,
source: 182351,
target: 182349 });
// 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: 173185,
label: 'TEAM: Codage neural et neuro-ingénierie des fonctions de parole',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/01/research_pasteur-enneural-coding-and-neuroengineering-of-human-speech-functions-frcodage-neural-et-ingenierie-des-fonctions-de-parole-illustration-pasteur-team-copy-no-background-petite-2-150x150.png',
page_url: 'https://research.pasteur.fr/fr/team/neural-coding-and-engineering-of-human-speech-functions/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 160139173185,
size: 0.5,
source: 160139,
target: 173185 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 189286,
label: 'Olesia Platonova',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/10/research_pasteur-olesia-platonova-olesia-official-photo-e1667393823639-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/olesia-platonova/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 173185189286,
size: 0.5,
source: 173185,
target: 189286 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 189319,
label: 'Soufiane Jhilal',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/10/research_pasteur-soufiane-jhilal-1656462526388-01-2-e1666866183102-150x150.jpeg',
page_url: 'https://research.pasteur.fr/fr/member/soufiane-jhilal/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 173185189319,
size: 0.5,
source: 173185,
target: 189319 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 190523,
label: 'Ludovica Veggiotti',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/11/research_pasteur-ludovica-veggiotti-veggiotti-ludovica-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/ludovica-veggiotti/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 173185190523,
size: 0.5,
source: 173185,
target: 190523 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 193996,
label: 'Ali El Cheikh',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/01/research_pasteur-ali-el-cheikh-ali-150x150.jpeg',
page_url: 'https://research.pasteur.fr/fr/member/ali-el-cheikh/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 173185193996,
size: 0.5,
source: 173185,
target: 193996 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 196187,
label: 'Rémy Masson',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/02/research_pasteur-remy-masson-large-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/remy-masson/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 173185196187,
size: 0.5,
source: 173185,
target: 196187 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 217277,
label: 'Séverine Samson',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/01/research_pasteur-enseverine-samsonfrseverine-samson-severine-samson-scaled-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/severine-samson/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 173185217277,
size: 0.5,
source: 173185,
target: 217277 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 217271,
label: 'Lise Hobeika',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/01/research_pasteur-enlise-hobeikafrlise-hobeika-lise-hobeika-642x380-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/lise-hobeika/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 173185217271,
size: 0.5,
source: 173185,
target: 217271 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 226798,
label: 'Anna Skrzatek',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/anna-skrzatek/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 173185226798,
size: 0.5,
source: 173185,
target: 226798 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 226795,
label: 'Djésèr Kordon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/06/research_pasteur-endjeser-kordonfrdjeser-kordon-photo-2024-08-23-13-02-57-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/djeser-kordon/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 173185226795,
size: 0.5,
source: 173185,
target: 226795 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 226790,
label: 'Olesia Dogonasheva',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/06/research_pasteur-enolesia-dogonashevafrolesia-dogonasheva-aqr-66vz-400x400-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/olesia-dogonasheva/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 173185226790,
size: 0.5,
source: 173185,
target: 226790 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 188001,
label: 'Mariette Vinurel',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/mariette-vinurel/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 173185188001,
size: 0.5,
source: 173185,
target: 188001 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 226807,
label: 'Yunzhi Luo',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/06/research_pasteur-enyunzhi-luofryunzhi-luo-dsc05813-e1718357589908-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/yunzhi-luo/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 173185226807,
size: 0.5,
source: 173185,
target: 226807 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 226810,
label: 'Aviva Kornel',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/aviva-kornel/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 173185226810,
size: 0.5,
source: 173185,
target: 226810 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 232627,
label: 'Anaïs Gravet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/10/research_pasteur-enanais-gravetfranais-gravet-photo-anais-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/anais-gravet/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 173185232627,
size: 0.5,
source: 173185,
target: 232627 });
//check if content already exist
//link to content
g.edges.push({
id: 173185173181,
size: 0.5,
source: 173185,
target: 173181 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 187985,
label: 'Sophie Bouton',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/01/research_pasteur-enneural-coding-and-neuroengineering-of-human-speech-functions-frcodage-neural-et-ingenierie-des-fonctions-de-parole-photo-me-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/sophie-bouton/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 173185187985,
size: 0.5,
source: 173185,
target: 187985 });
// 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: 164700,
label: 'TEAM: Plateforme de BioImagerie de l’Institut de l’Audition',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/hearing-institute-bioimaging-core-facility/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 160139164700,
size: 0.5,
source: 160139,
target: 164700 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164784,
label: 'Beatrix Meha',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/beatrix-meha/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 164700164784,
size: 0.5,
source: 164700,
target: 164784 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 200377,
label: 'Yannick Goulam Houssen',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/yannick-goulam-houssen/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 164700200377,
size: 0.5,
source: 164700,
target: 200377 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164891,
label: 'Maia Brunstein',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/08/research_pasteur-maia-brunstein-photo-maia2-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/maia-brunstein/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 164700164891,
size: 0.5,
source: 164700,
target: 164891 });
// 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: 164712,
label: 'TEAM: Plateforme d’Animalerie et Phénotypage de l’Institut de l’Audition',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/hearing-institute-animal-phenotyping-core-facility/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 160139164712,
size: 0.5,
source: 160139,
target: 164712 });
//check if content already exist
//link to content
g.edges.push({
id: 164712,
size: 0.5,
source: 164712,
target: });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164893,
label: 'Marta Lindner',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/08/research_pasteur-marta-lindner-marta-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/marta-lindner/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 164712164893,
size: 0.5,
source: 164712,
target: 164893 });
// 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: 160175,
label: 'TEAM: Développement Cochléaire et perspectives Thérapeutiques',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/cochlear-development-and-therapeutic-perspectives/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 160139160175,
size: 0.5,
source: 160139,
target: 160175 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 4673,
label: 'Jacques Boutet De Monvel',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/01/research.pasteur.fr_jbdm_photo_id-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/jacques-boutet-de-monvel/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1601754673,
size: 0.5,
source: 160175,
target: 4673 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 69600,
label: 'Céline Trébeau',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/celine-trebeau/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 16017569600,
size: 0.5,
source: 160175,
target: 69600 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164770,
label: 'Carla Barbosa Spinola',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/carla-barbosa-spinola/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160175164770,
size: 0.5,
source: 160175,
target: 164770 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 174794,
label: 'Hassan Omais',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/hassan-omais/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160175174794,
size: 0.5,
source: 160175,
target: 174794 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 225682,
label: 'Kelly Burkhead',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/kelly-burkhead/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160175225682,
size: 0.5,
source: 160175,
target: 225682 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 58292,
label: 'Raphaël Etournay',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/05/research.pasteur.fr_etournay_raphael-180px-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/raphael-etournay/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 16017558292,
size: 0.5,
source: 160175,
target: 58292 });
// 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: 160183,
label: 'TEAM: Cognition et communication auditive',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/auditory-cognition-and-communication/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 160139160183,
size: 0.5,
source: 160139,
target: 160183 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164604,
label: 'Keith Doelling',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/keith-doelling/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160183164604,
size: 0.5,
source: 160183,
target: 164604 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164878,
label: 'Tanguy Delmas',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/tanguy-delmas/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160183164878,
size: 0.5,
source: 160183,
target: 164878 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164880,
label: 'Mathieu Pham Van Cang',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/mathieu-phamvan-cang/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160183164880,
size: 0.5,
source: 160183,
target: 164880 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164883,
label: 'Emma Ducos',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/emma-ducos/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160183164883,
size: 0.5,
source: 160183,
target: 164883 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 174797,
label: 'Loïc Le Rhun',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/loic-le-rhun/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160183174797,
size: 0.5,
source: 160183,
target: 174797 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 174799,
label: 'Noémi Goncalves',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/noemi-goncalves/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160183174799,
size: 0.5,
source: 160183,
target: 174799 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 189399,
label: 'Catherine Ladan',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/catherine-ladan/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160183189399,
size: 0.5,
source: 160183,
target: 189399 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164600,
label: 'Luc Arnal',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/luc-arnal/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160183164600,
size: 0.5,
source: 160183,
target: 164600 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164602,
label: 'Diane Lazard',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/diane-lazard/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160183164602,
size: 0.5,
source: 160183,
target: 164602 });
// 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: 160171,
label: 'TEAM: Technologies et thérapie génique pour la surdité',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/technologies-and-gene-therapy-for-deafness/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 160139160171,
size: 0.5,
source: 160139,
target: 160171 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164779,
label: 'Marie Jose Lecomte',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/marie-jose-lecomte/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160171164779,
size: 0.5,
source: 160171,
target: 164779 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164786,
label: 'Ghizlene Lahlou',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/ghizlene-lahlou/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160171164786,
size: 0.5,
source: 160171,
target: 164786 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164788,
label: 'Maxence Cornille',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/maxence-cornille/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160171164788,
size: 0.5,
source: 160171,
target: 164788 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164797,
label: 'Jérôme Nevoux',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/sepideh-iranfar-2/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160171164797,
size: 0.5,
source: 160171,
target: 164797 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164782,
label: 'Baptiste Plion',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/baptiste-plion/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160171164782,
size: 0.5,
source: 160171,
target: 164782 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164847,
label: 'Sepideh Iranfar',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/sepideh-iranfar-3/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160171164847,
size: 0.5,
source: 160171,
target: 164847 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164867,
label: 'Evelyne Ferrary',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/evelyne-ferrary/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160171164867,
size: 0.5,
source: 160171,
target: 164867 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164869,
label: 'Victor Renato Torres Lazo',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/victor-torres-lazo/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160171164869,
size: 0.5,
source: 160171,
target: 164869 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 174783,
label: 'Mauricio Saenz Roldan',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/mauricio-saenz-roldan/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160171174783,
size: 0.5,
source: 160171,
target: 174783 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 174791,
label: 'Hannah Daoudi',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/hannah-daoudi/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160171174791,
size: 0.5,
source: 160171,
target: 174791 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 191060,
label: 'Hélène Le Ribeuz',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/helene-le-ribeuz/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160171191060,
size: 0.5,
source: 160171,
target: 191060 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 214790,
label: 'Amel Saoudi',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/amel-saoudi/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160171214790,
size: 0.5,
source: 160171,
target: 214790 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 4659,
label: 'Saaid Safieddine',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/saaid-safieddine/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1601714659,
size: 0.5,
source: 160171,
target: 4659 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164865,
label: 'Yann Nguyen',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/yann-nguyen/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160171164865,
size: 0.5,
source: 160171,
target: 164865 });
// 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: 160165,
label: 'TEAM: Plasticité des Circuits Auditifs Centraux',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/plasticity-of-central-auditory-circuits/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 160139160165,
size: 0.5,
source: 160139,
target: 160165 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164747,
label: 'Boris Gourévitch',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/boris-gourevitch/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160165164747,
size: 0.5,
source: 160165,
target: 164747 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 4677,
label: 'Typhaine Dupont',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/typhaine-dupont/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1601654677,
size: 0.5,
source: 160165,
target: 4677 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164759,
label: 'Philippe Jean',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/philippe-jean/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160165164759,
size: 0.5,
source: 160165,
target: 164759 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164763,
label: 'Olivier Postal',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/olivier-postal/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160165164763,
size: 0.5,
source: 160165,
target: 164763 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164765,
label: 'Carolina De Campos Pina',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/carolina-de-campos-pina/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160165164765,
size: 0.5,
source: 160165,
target: 164765 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164767,
label: 'Camille Dejean',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/camille-dejean/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160165164767,
size: 0.5,
source: 160165,
target: 164767 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 174774,
label: 'Sabrina Mechaussier',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/sabrina-mechaussier/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160165174774,
size: 0.5,
source: 160165,
target: 174774 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 174776,
label: 'Alexa Buck',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/alexa-buck/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160165174776,
size: 0.5,
source: 160165,
target: 174776 });
//check if content already exist
//link to content
g.edges.push({
id: 160165174799,
size: 0.5,
source: 160165,
target: 174799 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 4664,
label: 'Nicolas Michalski',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/nicolas-michalski/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 1601654664,
size: 0.5,
source: 160165,
target: 4664 });
// 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: 160160,
label: 'TEAM: Exploration clinique et translationnelle des synaptopathies auditives',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/clinical-and-translational-exploration-of-sensorineural-hearing-loss/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 160139160160,
size: 0.5,
source: 160139,
target: 160160 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 174771,
label: 'Thibault Peineau',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/thibault-peineau/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160160174771,
size: 0.5,
source: 160160,
target: 174771 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164875,
label: 'Didier Dulon',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/didier-dulon/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160160164875,
size: 0.5,
source: 160160,
target: 164875 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 182030,
label: 'Hung Thai Van',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/hung-thai-van/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160160182030,
size: 0.5,
source: 160160,
target: 182030 });
// 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: 160155,
label: 'TEAM: Dynamique du Système Auditif et Perception Multisensorielle',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/auditory-system-dynamics-and-multisensory-processing/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 160139160155,
size: 0.5,
source: 160139,
target: 160155 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164684,
label: 'Joanna Schwenkgrub',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/joanna-schwenkgrub/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160155164684,
size: 0.5,
source: 160155,
target: 164684 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164732,
label: 'Sara Jamali',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/sara-jamali/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160155164732,
size: 0.5,
source: 160155,
target: 164732 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164730,
label: 'Sophie Bagur',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/bagur-sophie/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160155164730,
size: 0.5,
source: 160155,
target: 164730 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164736,
label: 'Etienne Gosselin',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/etienne-gosselin/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160155164736,
size: 0.5,
source: 160155,
target: 164736 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164738,
label: 'Antonin Verdier',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/antonin-verdier/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160155164738,
size: 0.5,
source: 160155,
target: 164738 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164742,
label: 'Anthony Renard',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/anthony-renard/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160155164742,
size: 0.5,
source: 160155,
target: 164742 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 174768,
label: 'Simone Azeglio',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/01/research_pasteur-simone-azeglio-29872385-10212379518898817-4301572541427685108-o-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/simone-azeglio/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160155174768,
size: 0.5,
source: 160155,
target: 174768 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164587,
label: 'Brice Bathellier',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/brice-bathellier/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160155164587,
size: 0.5,
source: 160155,
target: 164587 });
// 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: 160144,
label: 'TEAM: Code Neural dans le Système Auditif',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/neural-coding-in-the-auditory-system/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 160139160144,
size: 0.5,
source: 160139,
target: 160144 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 174765,
label: 'Wei Li',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/wei-li/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160144174765,
size: 0.5,
source: 160144,
target: 174765 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 196687,
label: 'Ara Schorscher-Petcu',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/ara-schorscher-petcu/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160144196687,
size: 0.5,
source: 160144,
target: 196687 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 212696,
label: 'Victor Bordier',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/victor-bordier/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160144212696,
size: 0.5,
source: 160144,
target: 212696 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 234999,
label: 'Trinity Pirrone',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/trinity-pirrone/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160144234999,
size: 0.5,
source: 160144,
target: 234999 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 235002,
label: 'Esteban Delelis',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/esteban-delelis/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160144235002,
size: 0.5,
source: 160144,
target: 235002 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164680,
label: 'Jérémie Barral',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/08/research_pasteur-jeremie-barral-jbarral-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/barral-jeremie/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 160144164680,
size: 0.5,
source: 160144,
target: 164680 });
// 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: 24212,
label: 'TEAM: Déficits Sensoriels Progressifs, Pathophysiologie et Thérapie',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/team/progressive-sensory-disorders-pathophysiology-and-therapy/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 16013924212,
size: 0.5,
source: 160139,
target: 24212 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 4676,
label: 'Sedigheh Delmaghani',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/sedigheh-delmaghani/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 242124676,
size: 0.5,
source: 24212,
target: 4676 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 8341,
label: 'Sylvie Nouaille',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/02/research.pasteur.fr_nouaille-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/sylvie-nouaille/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 242128341,
size: 0.5,
source: 24212,
target: 8341 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 4437,
label: 'Sandrine VITRY',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/02/research_pasteur-photo_sandrine_labo_bis-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/sandrine-vitry/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 242124437,
size: 0.5,
source: 24212,
target: 4437 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 139489,
label: 'Maureen Wentling',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/04/research_pasteur-maureen-ida-photo-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/maureen-wentling/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 24212139489,
size: 0.5,
source: 24212,
target: 139489 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 139491,
label: 'Emilia Wysocka',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/02/research_pasteur-emilia-wysocka-emilia-wyzocka02-scaled-square-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/emilia-wysocka/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 24212139491,
size: 0.5,
source: 24212,
target: 139491 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 141835,
label: 'Samantha Papal',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/04/research_pasteur-samantha-papal-20220218-105105-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/samantha-papal/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 24212141835,
size: 0.5,
source: 24212,
target: 141835 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 152934,
label: 'Audrey Maudoux',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/audrey-maudoux/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 24212152934,
size: 0.5,
source: 24212,
target: 152934 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 8346,
label: 'Sébastien Le Gal',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/sebastien-le-gal/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 242128346,
size: 0.5,
source: 24212,
target: 8346 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 174098,
label: 'Clara Mendia',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/clara-mendia/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 24212174098,
size: 0.5,
source: 24212,
target: 174098 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 177062,
label: 'Muge Senarisoy',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/02/research_pasteur-muge-senarisoy-ms-photo2021-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/muge-senarisoy/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 24212177062,
size: 0.5,
source: 24212,
target: 177062 });
//check if content already exist
//link to content
g.edges.push({
id: 24212189399,
size: 0.5,
source: 24212,
target: 189399 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 164792,
label: 'Chloe Felgerolle',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/chloe-felgerolle/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 24212164792,
size: 0.5,
source: 24212,
target: 164792 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 4662,
label: 'Aziz El Amraoui',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-aziz-el-amraoui-aziz-el-amraoui-dsp-150x150.jpeg',
page_url: 'https://research.pasteur.fr/fr/member/aziz-el-amraoui/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 242124662,
size: 0.5,
source: 24212,
target: 4662 });
// 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: 57,
label: 'TEAM: Laboratoire d’Innovation en Thérapies de l’Audition',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2014/09/dna-genes-1405932776-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/team/auditory-therapies-innovation-lab/',
size: 10,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 16013957,
size: 0.5,
source: 160139,
target: 57 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 173898,
label: 'Asadollah Aghaie',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/asadollah-aghaie/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 57173898,
size: 0.5,
source: 57,
target: 173898 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 173886,
label: 'Crystel Bonnet',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/crystel-bonnet/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 57173886,
size: 0.5,
source: 57,
target: 173886 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 141587,
label: 'Evelyne Castanié',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/evelyne-castanie/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 57141587,
size: 0.5,
source: 57,
target: 141587 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 173896,
label: 'Amrit Estivalet',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/amrit-estivalet/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 57173896,
size: 0.5,
source: 57,
target: 173896 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 87826,
label: 'Chloé Guillas',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/03/research.pasteur.fr_snapchat-13940444222-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/chloe-guillas/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 5787826,
size: 0.5,
source: 57,
target: 87826 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 173902,
label: 'Anne-Valérie Heritier',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/anne-valerie-heritier/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 57173902,
size: 0.5,
source: 57,
target: 173902 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 4663,
label: 'Andrea Lelli',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/andrea-lelli/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 574663,
size: 0.5,
source: 57,
target: 4663 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 173888,
label: 'Magali Niasme-Grare',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/magali-niasme-grare/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 57173888,
size: 0.5,
source: 57,
target: 173888 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 173908,
label: 'Solène Roux',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/solene-roux/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 57173908,
size: 0.5,
source: 57,
target: 173908 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 173892,
label: 'Muriel Sudres',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/muriel-sudres/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 57173892,
size: 0.5,
source: 57,
target: 173892 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 4655,
label: 'Virginie Wong Jun Tai',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/fr/member/virginie-wong-jun-tai/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 574655,
size: 0.5,
source: 57,
target: 4655 });
//check if content already exist
if (x_node<0){
x_site = x_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
x_site = x_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
if (y_node<0){
y_site = y_node + 0.01*(((Math.random() * 2)-1) - offset_left);
}else{
y_site = y_node + 0.01*(((Math.random() * 2)-1) + offset_left);
}
// adding site
g.nodes.push({
id: 3815,
label: 'Christine Petit',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_cpetitweb-150x150.jpg',
page_url: 'https://research.pasteur.fr/fr/member/christine-petit/',
x: x_site,
y: y_site,
size: 3,
color: '#DDDDDD'
});
//link to content
g.edges.push({
id: 573815,
size: 0.5,
source: 57,
target: 3815 });
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) {
});