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: 4148,
label: 'Nadia Izadi-Pruneyre',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_photo_site-150x150.jpg',
x: 0,
y: 0,
size: 30,
color: '#DDDDDD'
});
var biggest_node_size = 0;
N=25
// 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: 219826,
label: 'NEWS: Des moteurs moléculaires produisent l’énergie nécessaire pour nourrir les bactéries',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/des-moteurs-moleculaires-produisent-lenergie-necessaire-pour-nourrir-les-bacteries/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148219826,
size: 0.5,
source: 4148,
target: 219826,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2198264148,
size: 0.5,
source: 219826,
target: 4148 });
// 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: 219807,
label: 'NEWS: Des moteurs moléculaires produisent l’énergie nécessaire pour nourrir les bactéries',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/des-moteurs-moleculaires-produisent-lenergie-necessaire-pour-nourrir-les-bacteries__trashed/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148219807,
size: 0.5,
source: 4148,
target: 219807,
});
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4138,
label: 'Marc Delarue',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_marc2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marc-delarue/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2198074138,
size: 0.5,
source: 219807,
target: 4138 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2198074148,
size: 0.5,
source: 219807,
target: 4148 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4426,
label: 'Daniel Ladant',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_dl-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/daniel-ladant/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2198074426,
size: 0.5,
source: 219807,
target: 4426 });
// 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: 207287,
label: 'EVENT: DBSC workshop “Optimal Prediction of Protein Complex Structures with AlphaFold Made Easy” on September 26th',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/08/research_pasteur-research-pasteur-unknown-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/event/dbsc-workshop-optimal-prediction-of-protein-complex-structures-with-alphafold-made-easy-on-september-26th/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148207287,
size: 0.5,
source: 4148,
target: 207287,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2072874148,
size: 0.5,
source: 207287,
target: 4148 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4623,
label: 'Michael Nilges',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/02/research.pasteur.fr_dsc3513-copy-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/michael-nilges/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2072874623,
size: 0.5,
source: 207287,
target: 4623 });
// 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: 195937,
label: 'NEWS: Bacterial pathogenicity: improving understanding of an essential process – molecule secretion',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/bacterial-pathogenicity-improving-understanding-of-an-essential-process-molecule-secretion/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148195937,
size: 0.5,
source: 4148,
target: 195937,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1959374148,
size: 0.5,
source: 195937,
target: 4148 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4611,
label: 'Benjamin Bardiaux',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_bardiaux-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/benjamin-bardiaux/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1959374611,
size: 0.5,
source: 195937,
target: 4611 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4297,
label: 'Olivera Francetic',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_o-francetic-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/olivera-francetic/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1959374297,
size: 0.5,
source: 195937,
target: 4297 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4623) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1959374623,
size: 0.5,
source: 195937,
target: 4623 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 796,
label: 'Ahmed Haouz',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/04/ahmed-haouz-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/ahmed-haouz/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 195937796,
size: 0.5,
source: 195937,
target: 796 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4147,
label: 'Florence Cordier',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/08/research_pasteur-photo_flo_2019.06.25a_crop-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/florence-cordier/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1959374147,
size: 0.5,
source: 195937,
target: 4147 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 98461,
label: 'Ariel Mechaly',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/03/research_pasteur-njg1njqx-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/fr-ariel-mechaly/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 19593798461,
size: 0.5,
source: 195937,
target: 98461 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4046,
label: 'Sébastien Brier',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/11/research_pasteur-dsc_1803_hd.jpg-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sebastien-brier/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1959374046,
size: 0.5,
source: 195937,
target: 4046 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 117593,
label: 'Yuanyuan Li',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/07/research_pasteur-2-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/fr-yuanyuan-li/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 195937117593,
size: 0.5,
source: 195937,
target: 117593 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 140402,
label: 'Régine Dazzoni',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/03/research_pasteur-enregine-dazzonifrregine-dazzoni-fotbb28-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/regine-dazzoni-2/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 195937140402,
size: 0.5,
source: 195937,
target: 140402 });
// 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: 195660,
label: 'EVENT: NMR: a tool for biology XIIIth',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/nmr-a-tool-for-biology-xiiith/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148195660,
size: 0.5,
source: 4148,
target: 195660,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1956604148,
size: 0.5,
source: 195660,
target: 4148 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4623) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1956604623,
size: 0.5,
source: 195660,
target: 4623 });
// 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: 186667,
label: 'PROJECT: Energir: Energy dependent iron import by Gram-negative bacteria',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/fr-energir-energy-dependent-iron-import-by-gram-negative-bacteria/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148186667,
size: 0.5,
source: 4148,
target: 186667,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4623) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1866674623,
size: 0.5,
source: 186667,
target: 4623 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4046) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1866674046,
size: 0.5,
source: 186667,
target: 4046 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 62876,
label: 'Marcel Hollenstein',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/01/research.pasteur.fr_thrashmanlessthrash-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marcel-hollenstein/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 18666762876,
size: 0.5,
source: 186667,
target: 62876 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4611) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1866674611,
size: 0.5,
source: 186667,
target: 4611 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 117296,
label: 'Maylis Lejeune',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/11/research_pasteur-maylis_2017-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/maylis-lejeune/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 186667117296,
size: 0.5,
source: 186667,
target: 117296 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 70499,
label: 'Olivier Sperandio',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/05/research.pasteur.fr_sperandio-id-photo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/olivier-sperandio/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 18666770499,
size: 0.5,
source: 186667,
target: 70499 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4616,
label: 'Guillaume Bouvier',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/03/research.pasteur.fr_profile_1-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/guillaume-bouvier/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1866674616,
size: 0.5,
source: 186667,
target: 4616 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 75573,
label: 'Fabienne Levi-Acobas',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/fabienne-levi-acobas/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 18666775573,
size: 0.5,
source: 186667,
target: 75573 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4624,
label: 'Riccardo Pellarin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_myself1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/riccardo-pellarin/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1866674624,
size: 0.5,
source: 186667,
target: 4624 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 157457,
label: 'Maximilian Zinke',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/maximilian-zinke/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 186667157457,
size: 0.5,
source: 186667,
target: 157457 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1866674148,
size: 0.5,
source: 186667,
target: 4148 });
// 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: 178344,
label: 'EVENT: Half-day Latest innovations and Applications in CryoEM& CryoET',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/half-day-latest-innovations-and-applications-in-cryoem-cryoet/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148178344,
size: 0.5,
source: 4148,
target: 178344,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4147) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1783444147,
size: 0.5,
source: 178344,
target: 4147 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4046) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1783444046,
size: 0.5,
source: 178344,
target: 4046 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 95915,
label: 'Paola Arimondo',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/10/research_pasteur-p-arimondo_5757-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/paola-arimondo/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 17834495915,
size: 0.5,
source: 178344,
target: 95915 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1783444148,
size: 0.5,
source: 178344,
target: 4148 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 154625,
label: 'Assunta Pelosi',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/02/research_pasteur-assunta-pelosi-img-0066-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/assunta-pelosi/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 178344154625,
size: 0.5,
source: 178344,
target: 154625 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4623) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1783444623,
size: 0.5,
source: 178344,
target: 4623 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 7039,
label: 'Marie-Laure Goupil',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_photo-marie-laure-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marie-laure-goupil/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1783447039,
size: 0.5,
source: 178344,
target: 7039 });
// 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: 168008,
label: 'PROJECT: ANR OM-LipAsy: Outer membrane lipid asymmetry in Veillonella parvula, an atypical diderm Firmicute',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/09/research_pasteur-enom-lipasy-capture-decran-2021-09-28-a-18.08.11-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/om-lipasy/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148168008,
size: 0.5,
source: 4148,
target: 168008,
});
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4286,
label: 'Simonetta Gribaldo',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/10/research_pasteur-photo-simo2-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/simonetta-gribaldo/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1680084286,
size: 0.5,
source: 168008,
target: 4286 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 90107,
label: 'Najwa Taib',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/05/research_pasteur-photo_ntaib-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/najwa-taib/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 16800890107,
size: 0.5,
source: 168008,
target: 90107 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1680084148,
size: 0.5,
source: 168008,
target: 4148 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4345,
label: 'Sylvie Létoffé',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_sylvie2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sylvie-letoffe/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1680084345,
size: 0.5,
source: 168008,
target: 4345 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4344,
label: 'Bianca Audrain',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_bianca2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/bianca-audrain/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1680084344,
size: 0.5,
source: 168008,
target: 4344 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 148650,
label: 'Basile Beaud',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/10/research_pasteur-8a951152-5fa0-4920-99f6-30c8a2ec3081-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/fr-basile-beaud/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 168008148650,
size: 0.5,
source: 168008,
target: 148650 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4611) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1680084611,
size: 0.5,
source: 168008,
target: 4611 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 117296) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 168008117296,
size: 0.5,
source: 168008,
target: 117296 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 188060,
label: 'Anna Kurowska',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/10/research_pasteur-anna-kurowska-img-0644-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/anna-kurowska/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 168008188060,
size: 0.5,
source: 168008,
target: 188060 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4335,
label: 'Christophe Beloin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_christophe2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/christophe-beloin/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1680084335,
size: 0.5,
source: 168008,
target: 4335 });
// 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: 143562,
label: 'EVENT: NMR: a tool for Biology XIIth',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/143562/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148143562,
size: 0.5,
source: 4148,
target: 143562,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1435624148,
size: 0.5,
source: 143562,
target: 4148 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4623) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1435624623,
size: 0.5,
source: 143562,
target: 4623 });
// 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: 136760,
label: 'EVENT: Department of Structural Biology and Chemistry seminar: Dr. Olivier Lambert, Antibiotic resistance and contribution of Multidrug Efflux Pumps: Structural and functional insights.',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/department-of-structural-biology-and-chemistry-seminar-olivier-lambert-antibiotic-resistance-and-contribution-of-multidrug-efflux-pumps-structural-and-functional-insights/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148136760,
size: 0.5,
source: 4148,
target: 136760,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1367604148,
size: 0.5,
source: 136760,
target: 4148 });
// 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: 130091,
label: 'PROJECT: Synergy_T2SS',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/synergy_t2ss/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148130091,
size: 0.5,
source: 4148,
target: 130091,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 117593) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 130091117593,
size: 0.5,
source: 130091,
target: 117593 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4301,
label: 'Ingrid Guilvout',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_ingrid-guilvout-new-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/ingrid-guilvout/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1300914301,
size: 0.5,
source: 130091,
target: 4301 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4611) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1300914611,
size: 0.5,
source: 130091,
target: 4611 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4297) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1300914297,
size: 0.5,
source: 130091,
target: 4297 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1300914148,
size: 0.5,
source: 130091,
target: 4148 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4623) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1300914623,
size: 0.5,
source: 130091,
target: 4623 });
// 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: 129004,
label: 'NEWS: Post-doc available',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/post-doc-available/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148129004,
size: 0.5,
source: 4148,
target: 129004,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1290044148,
size: 0.5,
source: 129004,
target: 4148 });
// 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: 120569,
label: 'EVENT: 11th Conference “NMR: a tool for Biology”, 28-30 Jan 2019',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/01/research_pasteur-flyer_nmr_2019_last-1-150x150.png',
page_url: 'https://research.pasteur.fr/en/event/11th-nmr-a-tool-for-biology-conference-28-30-jan-2019/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148120569,
size: 0.5,
source: 4148,
target: 120569,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1205694148,
size: 0.5,
source: 120569,
target: 4148 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4623) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1205694623,
size: 0.5,
source: 120569,
target: 4623 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4147) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1205694147,
size: 0.5,
source: 120569,
target: 4147 });
// 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: 120003,
label: 'PATENT: Docking method based on saturation transfer difference NMR data, and means for its implementation WO 2019/011987',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/patent/docking-method-based-on-saturation-transfer-difference-nmr-data-and-means-for-its-implementation-wo-2019-011987/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148120003,
size: 0.5,
source: 4148,
target: 120003,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1200034148,
size: 0.5,
source: 120003,
target: 4148 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4616) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1200034616,
size: 0.5,
source: 120003,
target: 4616 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4161,
label: 'Catherine Simenel',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=4161',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1200034161,
size: 0.5,
source: 120003,
target: 4161 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4623) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1200034623,
size: 0.5,
source: 120003,
target: 4623 });
// 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: 106865,
label: 'EVENT: Seminar of the Department of Structural Biology and Chemistry',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/seminar-of-the-department-of-structural-biology-and-chemistry/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148106865,
size: 0.5,
source: 4148,
target: 106865,
});
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 8206,
label: 'Maya Um',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=8206',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1068658206,
size: 0.5,
source: 106865,
target: 8206 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1068654148,
size: 0.5,
source: 106865,
target: 4148 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4612,
label: 'Thérèse Malliavin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_3ccf6f5-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/therese-malliavin/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1068654612,
size: 0.5,
source: 106865,
target: 4612 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 62876) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 10686562876,
size: 0.5,
source: 106865,
target: 62876 });
// 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: 106719,
label: 'EVENT: Inhibiting Chromatin Assembly by Targeting Histone Chaperones',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/inhibiting-chromatin-assembly-by-targeting-histone-chaperones-dr-ochsenbein-francoise/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148106719,
size: 0.5,
source: 4148,
target: 106719,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1067194148,
size: 0.5,
source: 106719,
target: 4148 });
// 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: 100820,
label: 'PROJECT: Protein synthesis machinery of Trypanosomatid as a therapeutic target',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/protein-synthesis-machinery-trypanosomatid-therapeutic-target/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148100820,
size: 0.5,
source: 4148,
target: 100820,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4616) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1008204616,
size: 0.5,
source: 100820,
target: 4616 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4695,
label: 'Sophie Vichier-Guerre',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_photo-web-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sophie-vichier-guerre/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1008204695,
size: 0.5,
source: 100820,
target: 4695 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 8305,
label: 'Laurence Dugue',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_laurencephoto-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/laurence-dugue/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1008208305,
size: 0.5,
source: 100820,
target: 8305 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 117296) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 100820117296,
size: 0.5,
source: 100820,
target: 117296 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1008204148,
size: 0.5,
source: 100820,
target: 4148 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4694,
label: 'Sylvie Pochet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_sans-titre2-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/sylvie-pochet/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1008204694,
size: 0.5,
source: 100820,
target: 4694 });
// 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: 100701,
label: 'EVENT: Dr. OCHSENBEIN Françoise – “Inhibiting Chromatin Assembly by Targeting Histone Chaperones” (CANCELLED)',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/dr-ochsenbein-francoise-inhibiting-chromatin-assembly-targeting-histone-chaperones/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4148100701,
size: 0.5,
source: 4148,
target: 100701,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1007014148,
size: 0.5,
source: 100701,
target: 4148 });
// 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: 99442,
label: 'PROJECT: ViBrANT (Viral and Bacterial Adhesin Network Training)',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/11/research_pasteur-screen-shot-2017-11-28-at-15.12.54-150x150.png',
page_url: 'https://research.pasteur.fr/en/project/vibrant-viral-bacterial-adhesin-network-training/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 414899442,
size: 0.5,
source: 4148,
target: 99442,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4611) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 994424611,
size: 0.5,
source: 99442,
target: 4611 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 994424148,
size: 0.5,
source: 99442,
target: 4148 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4623) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 994424623,
size: 0.5,
source: 99442,
target: 4623 });
// 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: 37995,
label: 'TOOL: Nuclear Magnetic Resonance spectrometers',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_20140327_115110-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/tool/nuclear-magnetic-resonance-spectrometers/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 414837995,
size: 0.5,
source: 4148,
target: 37995,
});
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4160,
label: 'Ada Prochnicka-Chalufour',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_maphoto-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/ada-prochnicka-chalufour/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 379954160,
size: 0.5,
source: 37995,
target: 4160 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4146,
label: 'Muriel Delepierre',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_fig6-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/muriel-delepierre/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 379954146,
size: 0.5,
source: 37995,
target: 4146 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4153,
label: 'Iñaki Guijarro',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/05/research_pasteur-photo4-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/inaki-guijarro/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 379954153,
size: 0.5,
source: 37995,
target: 4153 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4147) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 379954147,
size: 0.5,
source: 37995,
target: 4147 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4156,
label: 'Nicolas Wolff',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_photo-du-30-09-2015-a-09.47-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/nicolas-wolff/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 379954156,
size: 0.5,
source: 37995,
target: 4156 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 379954148,
size: 0.5,
source: 37995,
target: 4148 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 4158,
label: 'Bruno Vitorge',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_bruno_vitorge-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/bruno-vitorge/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 379954158,
size: 0.5,
source: 37995,
target: 4158 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4161) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 379954161,
size: 0.5,
source: 37995,
target: 4161 });
// 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: 35717,
label: 'PROJECT: Binding mode of promising antituberculosis clinical compounds to their bacterial target',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/binding-mode-of-promising-antituberculosis-clinical-compounds-to-their-bacterial-target/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 414835717,
size: 0.5,
source: 4148,
target: 35717,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4161) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 357174161,
size: 0.5,
source: 35717,
target: 4161 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4616) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 357174616,
size: 0.5,
source: 35717,
target: 4616 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4623) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 357174623,
size: 0.5,
source: 35717,
target: 4623 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 357174148,
size: 0.5,
source: 35717,
target: 4148 });
// 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: 24279,
label: 'TEAM: Bacterial transmembrane systems',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_i05280-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/bacterial-transmembrane-systems/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 414824279,
size: 0.5,
source: 4148,
target: 24279,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 117296) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 24279117296,
size: 0.5,
source: 24279,
target: 117296 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 157457) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 24279157457,
size: 0.5,
source: 24279,
target: 157457 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4611) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 242794611,
size: 0.5,
source: 24279,
target: 4611 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 8302,
label: 'Marie-Ange Garnier',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_img_47534-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marie-ange-garnier/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 242798302,
size: 0.5,
source: 24279,
target: 8302 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 211765,
label: 'Abel Teulé',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/abel-teule/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 24279211765,
size: 0.5,
source: 24279,
target: 211765 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 219333,
label: 'Ons Dakhlaoui',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/ons-dakhlaoui/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 24279219333,
size: 0.5,
source: 24279,
target: 219333 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 242794148,
size: 0.5,
source: 24279,
target: 4148 });
// 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: 26753,
label: 'PROJECT: FiberSpace',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_fiberspace-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/fiberspace/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 414826753,
size: 0.5,
source: 4148,
target: 26753,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 267534148,
size: 0.5,
source: 26753,
target: 4148 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4623) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 267534623,
size: 0.5,
source: 26753,
target: 4623 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4297) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 267534297,
size: 0.5,
source: 26753,
target: 4297 });
// 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: 20655,
label: 'PROJECT: Bacterial Transmembrane Signaling',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_figura14-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/bacterial-transmembrane-signalling/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 414820655,
size: 0.5,
source: 4148,
target: 20655,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4147) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 206554147,
size: 0.5,
source: 20655,
target: 4147 });
//check if content already exist
if (x_node<0){
x_site = x_node + ((Math.random() * 2)-1) - offset_left;
}else{
x_site = x_node + ((Math.random() * 2)-1) + offset_left;
}
if (y_node<0){
y_site = y_node + ((Math.random() * 2)-1) - offset_left;
}else{
y_site = y_node + ((Math.random() * 2)-1) + offset_left;
}
// adding site
g.nodes.push({
id: 100983,
label: 'Loïc Hellio',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/01/research_pasteur-loic-hellio-20210203-143852-scaled-e1615974551120-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/loic-hellio/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 20655100983,
size: 0.5,
source: 20655,
target: 100983 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4624) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 206554624,
size: 0.5,
source: 20655,
target: 4624 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 117296) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 20655117296,
size: 0.5,
source: 20655,
target: 117296 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4611) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 206554611,
size: 0.5,
source: 20655,
target: 4611 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4046) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 206554046,
size: 0.5,
source: 20655,
target: 4046 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 206554148,
size: 0.5,
source: 20655,
target: 4148 });
// 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: 24,
label: 'DEPARTMENT: Structural Biology and Chemistry',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_electron-mic-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/department/structural-biology-chemistry/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 414824,
size: 0.5,
source: 4148,
target: 24,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 7039) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 247039,
size: 0.5,
source: 24,
target: 7039 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 95915) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2495915,
size: 0.5,
source: 24,
target: 95915 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4148) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 244148,
size: 0.5,
source: 24,
target: 4148 });
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: 35,
mouseWheelEnabled: false,
font: 'Montserrat',
labelThreshold:25,
borderSize:1,
defaultNodeBorderColor: '#999',
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;
});
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: 10,
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) {
});