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: 4335,
label: 'Christophe Beloin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_christophe2-150x150.jpg',
x: 0,
y: 0,
size: 30,
color: '#DDDDDD'
});
var biggest_node_size = 0;
N=24
// 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: 230010,
label: 'EVENT: Seminar Dept Microbiology “Role of the extracellular juncture domain of inverse autotransporters.”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/seminar-dept-microbiology-role-of-the-extracellular-juncture-domain-of-inverse-autotransporters/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4335230010,
size: 0.5,
source: 4335,
target: 230010,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2300104335,
size: 0.5,
source: 230010,
target: 4335 });
// 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: 222649,
label: 'PROJECT: Elucidating envelope evolution and the diderm-to-monoderm transition in Bacteria (ENVOL)',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/222649/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4335222649,
size: 0.5,
source: 4335,
target: 222649,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2226494335,
size: 0.5,
source: 222649,
target: 4335 });
//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: 1563,
label: 'Anna Sartori-Rupp',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/04/research_pasteur-foto-mia-cut-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/anna-sartori-rupp/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2226491563,
size: 0.5,
source: 222649,
target: 1563 });
//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: 121115,
label: 'Soufyan Fakroun',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/02/research_pasteur-img_20200204_080426_01-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/soufyan-fakroun/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 222649121115,
size: 0.5,
source: 222649,
target: 121115 });
//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: 2226494286,
size: 0.5,
source: 222649,
target: 4286 });
// 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: 198534,
label: 'PROJECT: Labex GIL: Methanobrevibacter and Veillonella crosstalk with the intestinal mucosa in the context of health and inflammation',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/labex-gil/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4335198534,
size: 0.5,
source: 4335,
target: 198534,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1985344335,
size: 0.5,
source: 198534,
target: 4335 });
//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: 4225,
label: 'Gérard Eberl',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_eberl-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/gerard-eberl/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1985344225,
size: 0.5,
source: 198534,
target: 4225 });
//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: 4778,
label: 'Giulia Nigro',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_nigro-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/giulia-nigro/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1985344778,
size: 0.5,
source: 198534,
target: 4778 });
//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: 57997,
label: 'Guillaume Borrel',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/11/research.pasteur.fr_photo-guillaume-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/guillaume-borrel/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 19853457997,
size: 0.5,
source: 198534,
target: 57997 });
//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: 168402,
label: 'Camille Martin-Gallausiaux',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/10/research_pasteur-camille-martin-gallausiaux-photo-camille-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/camille-martin-gallausiaux/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 198534168402,
size: 0.5,
source: 198534,
target: 168402 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4286) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1985344286,
size: 0.5,
source: 198534,
target: 4286 });
// 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: 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: 4335168008,
size: 0.5,
source: 4335,
target: 168008,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4286) {
n.size = n.size + 8;
}
});
//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
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: 4148,
label: 'Nadia Izadi-Pruneyre',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_photo_site-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/nadia-izadi-pruneyre/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//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
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: 1680084611,
size: 0.5,
source: 168008,
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: 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
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1680084335,
size: 0.5,
source: 168008,
target: 4335 });
// 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: 161303,
label: 'EVENT: Seminar DPT Microbiology ” “Using adaptive laboratory evolution to explore the plasticity of biofilm promoting factors and emergence of antibiotic resistance in biofilms”, Christophe Beloin',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/seminar-dpt-microbiology-using-adaptive-laboratory-evolution-to-explore-the-plasticity-of-biofilm-promoting-factors-and-emergence-of-antibiotic-resistance-in-biofilms-christophe/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4335161303,
size: 0.5,
source: 4335,
target: 161303,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1613034335,
size: 0.5,
source: 161303,
target: 4335 });
// 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: 122746,
label: 'PROJECT: Biofilms formed by anaerobes',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/02/research_pasteur-anaerobiofilm-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/biofilms-formed-by-anaerobes/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4335122746,
size: 0.5,
source: 4335,
target: 122746,
});
//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: 77657,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 12274677657,
size: 0.5,
source: 122746,
target: 77657 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4344) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1227464344,
size: 0.5,
source: 122746,
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: 120932,
label: 'Stanislas Thiriet-Rupert',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/07/research_pasteur-stanislas2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/fr-stanislas-thiriet-rupert/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 122746120932,
size: 0.5,
source: 122746,
target: 120932 });
//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: 119197,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 122746119197,
size: 0.5,
source: 122746,
target: 119197 });
//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: 4214,
label: 'Bruno Dupuy',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_bruno_id-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/bruno-dupuy/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1227464214,
size: 0.5,
source: 122746,
target: 4214 });
//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: 4337,
label: 'Jean-Marc Ghigo',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/09/research_pasteur-ghigo-jean-marc-recad.lg_-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/jean-marc-ghigo/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1227464337,
size: 0.5,
source: 122746,
target: 4337 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1227464335,
size: 0.5,
source: 122746,
target: 4335 });
// 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: 105359,
label: 'NEWS: Asymmetric adhesion of rod-shaped bacteria controls microcolony morphogenesis',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-genetics-of-biofilms-figduvernoy-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/news/asymmetric-adhesion-of-rod-shaped-bacteria-controls-microcolony-morphogenesis/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4335105359,
size: 0.5,
source: 4335,
target: 105359,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4337) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1053594337,
size: 0.5,
source: 105359,
target: 4337 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1053594335,
size: 0.5,
source: 105359,
target: 4335 });
// 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: 98901,
label: 'EVENT: Prof. Michael BOTT – “Corynebacterium glutamicum – microbial cell factory and model organism for actinobacteria”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/prof-michael-bott-corynebacterium-glutamicum-microbial-cell-factory-and-model-organism-for-actinobacteria/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 433598901,
size: 0.5,
source: 4335,
target: 98901,
});
//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: 3915,
label: 'Marco Bellinzoni',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-marco-bellinzoni-img-0074-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marco-bellinzoni/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 989013915,
size: 0.5,
source: 98901,
target: 3915 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 989014335,
size: 0.5,
source: 98901,
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: 88762,
label: 'EVENT: “A novel mechanism of antibiotic resistance in Gram-positive pathogens” By Andrew EDWARDS – Microbiology Departement Seminar',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/a-novel-mechanism-of-antibiotic-resistance-in-gram-positive-pathogens-by-andrew-edwards-microbiology-departement-seminar/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 433588762,
size: 0.5,
source: 4335,
target: 88762,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 887624335,
size: 0.5,
source: 88762,
target: 4335 });
// 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: 76305,
label: 'PROJECT: ANR Fir-OM: Firmicutes with an outer membrane: toward new models to study the diderm/monoderm cell envelope transition',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/12/research.pasteur.fr_diapositive1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/anr-fir-om-firmicutes-with-an-outer-membrane-toward-new-models-to-study-the-didermmonoderm-cell-envelope-transition/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 433576305,
size: 0.5,
source: 4335,
target: 76305,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 763054335,
size: 0.5,
source: 76305,
target: 4335 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 90107) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 7630590107,
size: 0.5,
source: 76305,
target: 90107 });
//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: 96437,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 7630596437,
size: 0.5,
source: 76305,
target: 96437 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4286) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 763054286,
size: 0.5,
source: 76305,
target: 4286 });
// 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: 77304,
label: 'PROJECT: PTR OmNega: A multi-disciplinary investigation of the Negativicutes: atypical Firmicutes with LPS-outer membranes that inhabit the human gut',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/12/research.pasteur.fr_dsm-2008-57-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/a-multi-disciplinary-investigation-of-the-negativicutes-atypical-firmicutes-with-lps-outer-membranes-that-inhabit-the-human-gut/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 433577304,
size: 0.5,
source: 4335,
target: 77304,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 773044335,
size: 0.5,
source: 77304,
target: 4335 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 90107) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 7730490107,
size: 0.5,
source: 77304,
target: 90107 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4286) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 773044286,
size: 0.5,
source: 77304,
target: 4286 });
// 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: 67692,
label: 'EVENT: Journées du Département de Microbiologie',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/journees-du-departement-de-microbiologie/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 433567692,
size: 0.5,
source: 4335,
target: 67692,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 676924335,
size: 0.5,
source: 67692,
target: 4335 });
//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: 4025,
label: 'Anne Derbise',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/01/research.pasteur.fr_photo-du-10-06-15-à-17.10-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/anne-derbise/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 676924025,
size: 0.5,
source: 67692,
target: 4025 });
//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: 4118,
label: 'Hilde De Reuse',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_hilde_de_reuse-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/hilde-de-reuse/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 676924118,
size: 0.5,
source: 67692,
target: 4118 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4337) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 676924337,
size: 0.5,
source: 67692,
target: 4337 });
//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: 4908,
label: 'Pierre Alexandr Kaminski',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_ha25-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/pierre-alexandr-kaminski/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 676924908,
size: 0.5,
source: 67692,
target: 4908 });
//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: 4913,
label: 'Patrick Trieu-Cuot',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_photo_p_trieu_cuot_aout01-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/patrick-trieu-cuot/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 676924913,
size: 0.5,
source: 67692,
target: 4913 });
//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: 4359,
label: 'Catherine Werts',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_cwerts-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/catherine-werts/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 676924359,
size: 0.5,
source: 67692,
target: 4359 });
// 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: 47928,
label: 'COURSE: Microbiology Course Institut Pasteur',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/course/microbiology-course-institut-pasteur/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 433547928,
size: 0.5,
source: 4335,
target: 47928,
});
//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: 4299,
label: 'Françoise Norel-Bozouklian',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_fnorel-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/francoise-norel-bozouklian/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 479284299,
size: 0.5,
source: 47928,
target: 4299 });
//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: 479284301,
size: 0.5,
source: 47928,
target: 4301 });
//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: 7199,
label: 'Hervé Waxin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_herve-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/herve-waxin/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 479287199,
size: 0.5,
source: 47928,
target: 7199 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 479284335,
size: 0.5,
source: 47928,
target: 4335 });
// 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: 42477,
label: 'COURSE: Institut Pasteur Microbiology Course',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/course/institut-pasteur-microbiology-course/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 433542477,
size: 0.5,
source: 4335,
target: 42477,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4299) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 424774299,
size: 0.5,
source: 42477,
target: 4299 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 424774335,
size: 0.5,
source: 42477,
target: 4335 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4301) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 424774301,
size: 0.5,
source: 42477,
target: 4301 });
//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: 7205,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 424777205,
size: 0.5,
source: 42477,
target: 7205 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 7199) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 424777199,
size: 0.5,
source: 42477,
target: 7199 });
//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: 7203,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 424777203,
size: 0.5,
source: 42477,
target: 7203 });
// 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: 31873,
label: 'TOOL: Genetic Methods and Tools',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_genmethtools1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/tool/genetic-methods-and-tools/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 433531873,
size: 0.5,
source: 4335,
target: 31873,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 318734335,
size: 0.5,
source: 31873,
target: 4335 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4337) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 318734337,
size: 0.5,
source: 31873,
target: 4337 });
// 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: 31744,
label: 'TOOL: In vivo Study of Biofilm-Associated Catheter Infections',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_tivap.tools_2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/tool/in-vivo-study-of-biofilm-associated-catheter-infections/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 433531744,
size: 0.5,
source: 4335,
target: 31744,
});
//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: 25802,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 3174425802,
size: 0.5,
source: 31744,
target: 25802 });
//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: 25847,
label: 'David Lebeaux',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_david-lebeaux-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/david-lebeaux/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 3174425847,
size: 0.5,
source: 31744,
target: 25847 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 317444335,
size: 0.5,
source: 31744,
target: 4335 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4337) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 317444337,
size: 0.5,
source: 31744,
target: 4337 });
// 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: 19959,
label: 'PROJECT: Biofilm formation',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_bfformation-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/biofilm-formation/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 433519959,
size: 0.5,
source: 4335,
target: 19959,
});
//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: 4341,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 199594341,
size: 0.5,
source: 19959,
target: 4341 });
//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: 88242,
label: 'Emilie Deshayes',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/04/research.pasteur.fr_emilie-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/emilie-deshayes/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1995988242,
size: 0.5,
source: 19959,
target: 88242 });
//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: 89867,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1995989867,
size: 0.5,
source: 19959,
target: 89867 });
//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: 4339,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 199594339,
size: 0.5,
source: 19959,
target: 4339 });
//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: 67842,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1995967842,
size: 0.5,
source: 19959,
target: 67842 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 77657) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1995977657,
size: 0.5,
source: 19959,
target: 77657 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199594335,
size: 0.5,
source: 19959,
target: 4335 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4337) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199594337,
size: 0.5,
source: 19959,
target: 4337 });
// 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: 27407,
label: 'TOOL: Biofilm Microfermenters',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_microfermenterrond1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/tool/biofilm-microfermenters/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 433527407,
size: 0.5,
source: 4335,
target: 27407,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 274074335,
size: 0.5,
source: 27407,
target: 4335 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4344) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 274074344,
size: 0.5,
source: 27407,
target: 4344 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4337) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 274074337,
size: 0.5,
source: 27407,
target: 4337 });
// 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: 24154,
label: 'TEAM: Group: Christophe Beloin',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_institutpasteur_420551-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/group-christophe-beloin/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 433524154,
size: 0.5,
source: 4335,
target: 24154,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4344) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 241544344,
size: 0.5,
source: 24154,
target: 4344 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 120932) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 24154120932,
size: 0.5,
source: 24154,
target: 120932 });
//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: 150746,
label: 'Louis Dorison',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/12/research_pasteur-louis-dorison-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/louis-dorison/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 24154150746,
size: 0.5,
source: 24154,
target: 150746 });
//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: 236699,
label: 'Sabrya Bakhtaoui',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2025/01/research_pasteur-ensabrya-bakhtaoui-s.-bakhtaoui-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sabrya-bakhtaoui/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 24154236699,
size: 0.5,
source: 24154,
target: 236699 });
//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: 236696,
label: 'Sébastien Gilles',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2025/01/research_pasteur-ensebastien-gilles-s.-gilles-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sebastien-gilles/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 24154236696,
size: 0.5,
source: 24154,
target: 236696 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 241544335,
size: 0.5,
source: 24154,
target: 4335 });
// 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: 19978,
label: 'PROJECT: Biofilm physiology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_biofilm-physiology-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/biofilm-physiology/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 433519978,
size: 0.5,
source: 4335,
target: 19978,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4345) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199784345,
size: 0.5,
source: 19978,
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: 4343,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 199784343,
size: 0.5,
source: 19978,
target: 4343 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4339) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199784339,
size: 0.5,
source: 19978,
target: 4339 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4341) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199784341,
size: 0.5,
source: 19978,
target: 4341 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 77657) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1997877657,
size: 0.5,
source: 19978,
target: 77657 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 67842) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1997867842,
size: 0.5,
source: 19978,
target: 67842 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 89867) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1997889867,
size: 0.5,
source: 19978,
target: 89867 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4337) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199784337,
size: 0.5,
source: 19978,
target: 4337 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199784335,
size: 0.5,
source: 19978,
target: 4335 });
// 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: 48452,
label: 'PROJECT: Biofilm Tolerance to Antibiotics',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_biofilm-physiology2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/biofilm-antibiotic-tolerance/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 433548452,
size: 0.5,
source: 4335,
target: 48452,
});
//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: 67649,
label: 'Masaru Usui',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/04/research.pasteur.fr_masaru2-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/masaru-usui/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 4845267649,
size: 0.5,
source: 48452,
target: 67649 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4345) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 484524345,
size: 0.5,
source: 48452,
target: 4345 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 484524335,
size: 0.5,
source: 48452,
target: 4335 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4337) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 484524337,
size: 0.5,
source: 48452,
target: 4337 });
// 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: 6193,
label: 'TEAM: Genetics of Biofilms',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/01/research_pasteur-unite-biofilm-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/genetics-of-biofilms/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 43356193,
size: 0.5,
source: 4335,
target: 6193,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 61934335,
size: 0.5,
source: 6193,
target: 4335 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4344) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 61934344,
size: 0.5,
source: 6193,
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: 8320,
label: 'Pascale Sitbon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/02/research_pasteur-pascale3-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/pascale-sitbon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 61938320,
size: 0.5,
source: 6193,
target: 8320 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 120932) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6193120932,
size: 0.5,
source: 6193,
target: 120932 });
//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: 95038,
label: 'Sol Vendrell Fernandez',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/09/research_pasteur-sol-vendrell-fernandez-research-pasteur-sol-vendrell-fernandez-img-3812-e1732212162387-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sol-vendrell-fernandez/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 619395038,
size: 0.5,
source: 6193,
target: 95038 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 150746) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6193150746,
size: 0.5,
source: 6193,
target: 150746 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25847) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 619325847,
size: 0.5,
source: 6193,
target: 25847 });
//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: 203335,
label: 'Julie Le Bris',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/06/research_pasteur-julie-le-bris-48c5f0ea-8e78-424d-a489-524a895b6ab3-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/julie-le-bris/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6193203335,
size: 0.5,
source: 6193,
target: 203335 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 236699) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6193236699,
size: 0.5,
source: 6193,
target: 236699 });
//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: 236705,
label: 'Alix Mousel',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2025/01/research_pasteur-enalix-mousel-a.-mousel-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/alix-mousel/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6193236705,
size: 0.5,
source: 6193,
target: 236705 });
//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: 236709,
label: 'Sofia Mazzantini',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2025/01/research_pasteur-ensofia-mazzantini-s.-mazzantini-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sofia-mazzantini/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6193236709,
size: 0.5,
source: 6193,
target: 236709 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 236696) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6193236696,
size: 0.5,
source: 6193,
target: 236696 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4337) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 61934337,
size: 0.5,
source: 6193,
target: 4337 });
// 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: 19983,
label: 'PROJECT: Fighting biofilms',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_fighting-biofilms3-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/fighting-biofilms/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 433519983,
size: 0.5,
source: 4335,
target: 19983,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4344) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199834344,
size: 0.5,
source: 19983,
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: 4336,
label: 'Joaquin Bernal',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_joaquin2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/joaquin-bernal/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 199834336,
size: 0.5,
source: 19983,
target: 4336 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 25847) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1998325847,
size: 0.5,
source: 19983,
target: 25847 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199834335,
size: 0.5,
source: 19983,
target: 4335 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4337) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 199834337,
size: 0.5,
source: 19983,
target: 4337 });
// 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: 31925,
label: 'PROJECT: Biophysics of Bacteria-Surface Interactions',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_biophys-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/biophysics-of-bacteria-surface-interactions/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 433531925,
size: 0.5,
source: 4335,
target: 31925,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4335) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 319254335,
size: 0.5,
source: 31925,
target: 4335 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4337) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 319254337,
size: 0.5,
source: 31925,
target: 4337 });
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) {
});