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: 4824,
label: 'François Schweisguth',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/05/research_pasteur-fs3-3-150x150.jpg',
x: 0,
y: 0,
size: 30,
color: '#DDDDDD'
});
var biggest_node_size = 0;
N=18
// 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: 212399,
label: 'PROGRAM_PROJECT: The IP Stem Cell Initiative',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/11/research_pasteur-enthe-ip-stem-cell-initiativefrinitiative-cellules-souches-bandeau-site-reduced-ip-stem-cell-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/program_project/the-ip-stem-cell-initiative/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4824212399,
size: 0.5,
source: 4824,
target: 212399,
});
//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: 64150,
label: 'Laure Bally-Cuif',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/04/research.pasteur.fr_laure_bally-cuiff-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/laure-bally-cuif/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 21239964150,
size: 0.5,
source: 212399,
target: 64150 });
//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: 78773,
label: 'Romain Levayer',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/11/research.pasteur.fr_dsc_0008-001-1-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/romain-levayer/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 21239978773,
size: 0.5,
source: 212399,
target: 78773 });
//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: 4553,
label: 'Sigolène Meilhac',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-sigolene-meilhac-meilhac-sigolene-6578c-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sigolene-meilhac/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2123994553,
size: 0.5,
source: 212399,
target: 4553 });
//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: 155052,
label: 'Guillaume Frasca',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/03/research_pasteur-guillaume-frasca-gf-e1614787961122-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/guillaume-frasca/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 212399155052,
size: 0.5,
source: 212399,
target: 155052 });
//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: 4606,
label: 'Pablo Navarro Gil',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/10/research_pasteur-institut-pasteur_portraits-studio_gcc_162-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/pablo-navarro-gil/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2123994606,
size: 0.5,
source: 212399,
target: 4606 });
//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: 4876,
label: 'Shahragim Tajbakhsh',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-shahragim-tajbakhsh-tajbakhsh-photo2024-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/shahragim-tajbakhsh/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2123994876,
size: 0.5,
source: 212399,
target: 4876 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2123994824,
size: 0.5,
source: 212399,
target: 4824 });
//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: 4107,
label: 'Christophe D’Enfert',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/denfert_0-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/christophe-denfert/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2123994107,
size: 0.5,
source: 212399,
target: 4107 });
// 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: 156367,
label: 'NEWS: Highlights 2020',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/highlights-2020/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4824156367,
size: 0.5,
source: 4824,
target: 156367,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 64150) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 15636764150,
size: 0.5,
source: 156367,
target: 64150 });
//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: 4374,
label: 'Jérôme Gros',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_yia-gros_01-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/jerome-gros/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1563674374,
size: 0.5,
source: 156367,
target: 4374 });
//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: 35226,
label: 'Germano Cecere',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_germano-photo-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/germano-cecere/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 15636735226,
size: 0.5,
source: 156367,
target: 35226 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4553) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1563674553,
size: 0.5,
source: 156367,
target: 4553 });
//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: 6371,
label: 'Pauline Speder',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_dsc5160_2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/pauline-speder/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1563676371,
size: 0.5,
source: 156367,
target: 6371 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1563674824,
size: 0.5,
source: 156367,
target: 4824 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4876) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1563674876,
size: 0.5,
source: 156367,
target: 4876 });
// 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: 150231,
label: 'EVENT: DSCB Department seminar: Yohanns Bellaïche, Institut Curie – “How does morphogenesis cope with cell and tissue size?”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/dscb-department-seminar-yohanns-bellaiche-institut-curie-how-does-morphogenesis-cope-with-cell-and-tissue-size/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4824150231,
size: 0.5,
source: 4824,
target: 150231,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1502314824,
size: 0.5,
source: 150231,
target: 4824 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 6371) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1502316371,
size: 0.5,
source: 150231,
target: 6371 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4876) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1502314876,
size: 0.5,
source: 150231,
target: 4876 });
// 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: 138601,
label: 'EVENT: !!! CANCELLED !!! François Jacob & Jacques Monod Anniversary Symposium – Friday, June 19th, 2020 – Institut Pasteur, Paris',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/francois-jacob-jacques-monod-anniversary-conference-friday-june-19th-2020-institut-pasteur-paris/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4824138601,
size: 0.5,
source: 4824,
target: 138601,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1386014824,
size: 0.5,
source: 138601,
target: 4824 });
//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: 6957,
label: 'Moshe Yaniv',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_institutpasteur_28821-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/moshe-yaniv/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1386016957,
size: 0.5,
source: 138601,
target: 6957 });
// 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: 127641,
label: 'EVENT: Developmental and Stem Cell Biology Departement seminar: Olivier Pourquié, Harvard Stem Cell Institute, Boston, USA',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/dscb-departement-seminar-olivier-pourquie-harvard-stem-cell-institute-boston-usa/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4824127641,
size: 0.5,
source: 4824,
target: 127641,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1276414824,
size: 0.5,
source: 127641,
target: 4824 });
//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: 4864,
label: 'Vania Rosas Magallanes',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=4864',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1276414864,
size: 0.5,
source: 127641,
target: 4864 });
// 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: 117439,
label: 'EVENT: DSCB and C3BI Departments Seminar by Professor Stein Aerts, Department of Human Genetics, Laboratory of Computational Biology, KU Leuven',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/developmental-and-stem-cell-biology-department-seminar-by-professor-stein-aerts-department-of-human-genetics-laboratory-of-computational-biology-ku-leuven/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4824117439,
size: 0.5,
source: 4824,
target: 117439,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1174394824,
size: 0.5,
source: 117439,
target: 4824 });
//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: 4717,
label: 'Maxime Rotival',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/06/research_pasteur-twitterphotorussia-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/maxime-rotival/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1174394717,
size: 0.5,
source: 117439,
target: 4717 });
// 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: 115648,
label: 'EVENT: Developmental and Stem Cell Biology Department seminar by Doctor Abderrahman Khila, Developmental Genomics and Evolution team, Institut de Génomique Fonctionnelle de Lyon',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/developmental-and-stem-cell-biology-department-seminar-by-doctor-abderrahman-khila-developmental-genomics-and-evolution-team-institut-de-genomique-fonctionnelle-de-lyon/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4824115648,
size: 0.5,
source: 4824,
target: 115648,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1156484824,
size: 0.5,
source: 115648,
target: 4824 });
// 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: 108349,
label: 'EVENT: BDCS Department seminar by Professor Norbert Perrimon, Harvard Medical School, Boston, USA',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/bdcs-department-seminar-by-professor-norbert-perrimon-harvard-medical-school-boston-usa/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4824108349,
size: 0.5,
source: 4824,
target: 108349,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1083494824,
size: 0.5,
source: 108349,
target: 4824 });
// 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: 88156,
label: 'EVENT: SEMINAR ” Stem cells, diet, and physiology” by Professor Daniela Drummond-Barbosa',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/03/research.pasteur.fr_capture-d’écran-2017-03-31-à-16.38.48-1-150x150.png',
page_url: 'https://research.pasteur.fr/en/event/seminar-stem-cells-diet-and-physiology-by-professor-daniela-drummond-barbosa/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 482488156,
size: 0.5,
source: 4824,
target: 88156,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 881564824,
size: 0.5,
source: 88156,
target: 4824 });
//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: 51517,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 8815651517,
size: 0.5,
source: 88156,
target: 51517 });
// 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: 85605,
label: 'EVENT: SEMINAR “Design principles of cell-cell signaling processes” by David Sprinzak',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/seminar-design-principles-of-cell-cell-signaling-processes-by-david-sprinzak/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 482485605,
size: 0.5,
source: 4824,
target: 85605,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 856054824,
size: 0.5,
source: 85605,
target: 4824 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 51517) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 8560551517,
size: 0.5,
source: 85605,
target: 51517 });
// 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: 81916,
label: 'EVENT: SEMINAR “The varied roles of Notch in building the body plan”',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/01/research.pasteur.fr_kim_dale-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/event/seminar-the-varied-roles-of-notch-in-building-the-body-plan/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 482481916,
size: 0.5,
source: 4824,
target: 81916,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 819164824,
size: 0.5,
source: 81916,
target: 4824 });
//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: 7717,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 819167717,
size: 0.5,
source: 81916,
target: 7717 });
// 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: 21426,
label: 'PROGRAM_PROJECT: LabEx Revive – Regenerative biology & medicine',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_stem-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/program_project/revive/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 482421426,
size: 0.5,
source: 4824,
target: 21426,
});
//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: 4729,
label: 'Marina Caillet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_marina-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marina-caillet/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 214264729,
size: 0.5,
source: 21426,
target: 4729 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4876) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 214264876,
size: 0.5,
source: 21426,
target: 4876 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 214264824,
size: 0.5,
source: 21426,
target: 4824 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4606) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 214264606,
size: 0.5,
source: 21426,
target: 4606 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 64150) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2142664150,
size: 0.5,
source: 21426,
target: 64150 });
//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: 193569,
label: 'Cecile Martinat (I-Stem, Evry)',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/cecile-martinat-i-stem-evry/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 21426193569,
size: 0.5,
source: 21426,
target: 193569 });
//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: 194846,
label: 'Alice Jouneau (EPEE – INRAE)',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/alice-jouneau-embryo-and-pluripotency-epigenetic-and-environment-epee-inrae/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 21426194846,
size: 0.5,
source: 21426,
target: 194846 });
//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: 194872,
label: 'Philippe Menasché (Inserm U970, APHP)',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/01/research_pasteur-menache-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/epartner/philippe-menasche-inserm-u970-hopital-europeen-georges-pompidou/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 21426194872,
size: 0.5,
source: 21426,
target: 194872 });
//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: 194886,
label: 'Raphael Scharfmann (Institut Cochin, Paris)',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/epartner/raphael-scharfmann-institut-cochin-paris/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 21426194886,
size: 0.5,
source: 21426,
target: 194886 });
//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: 194902,
label: 'Frédéric Relaix (Institut Mondor de Recherche Biomédicale – IMRB)',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/01/research_pasteur-fred-relaix-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/epartner/frederic-relaix-institut-mondor-de-recherche-biomedicale-imrb/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 21426194902,
size: 0.5,
source: 21426,
target: 194902 });
// 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: 15551,
label: 'PROJECT: Epithelial morphogenesis',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_131127-image-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/regulation-of-epithelium-morphogenesis/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 482415551,
size: 0.5,
source: 4824,
target: 15551,
});
//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: 4828,
label: 'Gantas Perez Mockus',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=4828',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 155514828,
size: 0.5,
source: 15551,
target: 4828 });
//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: 35560,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1555135560,
size: 0.5,
source: 15551,
target: 35560 });
//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: 8332,
label: 'Vanessa Roca',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-vanessa-roca-img-0933-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/vanessa-roca/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 155518332,
size: 0.5,
source: 15551,
target: 8332 });
//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: 8327,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 155518327,
size: 0.5,
source: 15551,
target: 8327 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 155514824,
size: 0.5,
source: 15551,
target: 4824 });
// 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: 6143,
label: 'TEAM: Dynamics of Developmental Decisions in Drosophila',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_drosophila-developmental-genetics-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/4d/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 48246143,
size: 0.5,
source: 4824,
target: 6143,
});
//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: 4829,
label: 'M’hamed Khallil Mazouni',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_mazouni-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/mhamed-khallil-mazouni/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 61434829,
size: 0.5,
source: 6143,
target: 4829 });
//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: 8329,
label: 'Maria Reyngoud',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_maria-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/maria-reyngoud/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 61438329,
size: 0.5,
source: 6143,
target: 8329 });
//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: 151445,
label: 'Minh-Son Phan',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/12/research_pasteur-minh-son-phan-img-9420-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/minh-son-phan/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6143151445,
size: 0.5,
source: 6143,
target: 151445 });
//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: 178703,
label: 'Claire Mestdagh',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/03/research_pasteur-claire-mestdagh-photo-claire-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/claire-mestdagh/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6143178703,
size: 0.5,
source: 6143,
target: 178703 });
//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: 183060,
label: 'Gaëlle Letort',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/07/research_pasteur-gaelle-letort-screenshot-2022-07-01-at-11.41.05-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/gaelle-letort-2/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6143183060,
size: 0.5,
source: 6143,
target: 183060 });
//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: 191157,
label: 'Nisha Veits',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/11/research_pasteur-nisha-veits-nisha-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/nisha-veits/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6143191157,
size: 0.5,
source: 6143,
target: 191157 });
//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: 199729,
label: 'Cara Picciotto',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/04/research_pasteur-cara-picciotto-research-pasteur-cara-picciotto-screenshot-2023-04-25-at-13.22.47-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/cara-picciotto/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6143199729,
size: 0.5,
source: 6143,
target: 199729 });
//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: 209024,
label: 'David Green',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/09/research_pasteur-david-photo-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/david-green/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6143209024,
size: 0.5,
source: 6143,
target: 209024 });
//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: 228192,
label: 'Emily Webber',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/07/research_pasteur-enemily-webber-emily-website-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/emily-webber/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6143228192,
size: 0.5,
source: 6143,
target: 228192 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 61434824,
size: 0.5,
source: 6143,
target: 4824 });
// 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: 15546,
label: 'PROJECT: Cell polarity and asymmetric cell division',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_sans-titre5-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/planar-cell-polarization-in-the-context-of-asymmetric-cell-division/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 482415546,
size: 0.5,
source: 4824,
target: 15546,
});
//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: 4827,
label: 'Elodie Reynaud',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=4827',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 155464827,
size: 0.5,
source: 15546,
target: 4827 });
//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: 35574,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1554635574,
size: 0.5,
source: 15546,
target: 35574 });
//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: 35571,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1554635571,
size: 0.5,
source: 15546,
target: 35571 });
//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: 8328,
label: 'Lydie Couturier',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_lydie-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/lydie-couturier/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 155468328,
size: 0.5,
source: 15546,
target: 8328 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4829) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 155464829,
size: 0.5,
source: 15546,
target: 4829 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 155464824,
size: 0.5,
source: 15546,
target: 4824 });
// 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: 15544,
label: 'PROJECT: Cell biology of Notch',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_sans-titre6-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/regulation-of-notch-by-numb-in-the-context-of-asymmetric-cell-division/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 482415544,
size: 0.5,
source: 4824,
target: 15544,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8328) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 155448328,
size: 0.5,
source: 15544,
target: 8328 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4829) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 155444829,
size: 0.5,
source: 15544,
target: 4829 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 155444824,
size: 0.5,
source: 15544,
target: 4824 });
// 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: 35353,
label: 'PROJECT: Fate patterning and self-organized Notch dynamics',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_sans-titre2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/bristle-patterning-positional-information-and-self-organization/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 482435353,
size: 0.5,
source: 4824,
target: 35353,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8328) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 353538328,
size: 0.5,
source: 35353,
target: 8328 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4829) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 353534829,
size: 0.5,
source: 35353,
target: 4829 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4824) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 353534824,
size: 0.5,
source: 35353,
target: 4824 });
// 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: 20,
label: 'DEPARTMENT: Developmental and Stem Cell Biology',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2014/09/research_pasteur-endevelopmental-and-stem-cell-biologyfrbiologie-du-developpement-et-cellules-souches-bandeau-bdcs-150x150.png',
page_url: 'https://research.pasteur.fr/en/department/developmental-stem-cell-biology/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 482420,
size: 0.5,
source: 4824,
target: 20,
});
//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: 105747,
label: 'Doriane Thouvenot',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/member/doriane-thouvenot/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 20105747,
size: 0.5,
source: 20,
target: 105747 });
//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: 230940,
label: 'Daniel Manzoni-de-Almeida',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2014/09/research_pasteur-encell-biology-amp-infectionfrbiologie-cellulaire-et-infection-research-pasteur-encell-biology-amp-infectionfrbiologie-cellulaire-et-infection-screenshot-20240924-144250-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/daniel-manzoni-de-almeida/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 20230940,
size: 0.5,
source: 20,
target: 230940 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 64150) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2064150,
size: 0.5,
source: 20,
target: 64150 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4553) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 204553,
size: 0.5,
source: 20,
target: 4553 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 78773) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2078773,
size: 0.5,
source: 20,
target: 78773 });
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) {
});