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: 4873,
label: 'Miria Ricchetti',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/05/research.pasteur.fr_miria-ricchetti-150x150.jpg',
x: 0,
y: 0,
size: 30,
color: '#DDDDDD'
});
var biggest_node_size = 0;
N=14
// 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: 201948,
label: 'EVENT: 25th International Conference of the Redox Medicine Society',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/25th-international-conference-of-the-redox-medicine-society/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4873201948,
size: 0.5,
source: 4873,
target: 201948,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4873) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2019484873,
size: 0.5,
source: 201948,
target: 4873 });
// 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: 186012,
label: 'NEWS: New publication – Increased NOS coupling by the metabolite tetrahydrobiopterin (BH4) reduces preeclampsia/IUGR consequences',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/new-publication-increased-nos-coupling-by-the-metabolite-tetrahydrobiopterin-bh4-reduces-preeclampsia-iugr-consequences/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4873186012,
size: 0.5,
source: 4873,
target: 186012,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4873) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1860124873,
size: 0.5,
source: 186012,
target: 4873 });
// 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: 181503,
label: 'EVENT: Paris Redox 2022',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/paris-redox-2022/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4873181503,
size: 0.5,
source: 4873,
target: 181503,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4873) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1815034873,
size: 0.5,
source: 181503,
target: 4873 });
// 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: 173740,
label: 'EVENT: DSCB seminar – Dr. Martin Feelisch, Faculty of Medicine, University of Southampton, UK – “Reactive Species in Stress Signalling – From Single Cells to the Whole Organism”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/dscb-seminar-dr-martin-feelisch-faculty-of-medicine-university-of-southampton-uk-reactive-species-in-stress-signalling-from-single-cells-to-the-whole-organism-2/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4873173740,
size: 0.5,
source: 4873,
target: 173740,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4873) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1737404873,
size: 0.5,
source: 173740,
target: 4873 });
// 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: 124364,
label: 'EVENT: Developmental and Stem Cell Biology Department seminar by: Professor Juan-Carlos Izpisua Belmonte, Salk Institute for Biological Studies, La Jolla California',
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-juan-carlos-izpisua-belmonte-salk-institute-for-biological-studies-la-jolla-california/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4873124364,
size: 0.5,
source: 4873,
target: 124364,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4873) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1243644873,
size: 0.5,
source: 124364,
target: 4873 });
// 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: 113233,
label: 'EVENT: Extra seminar by Francesco Saverio Tedesco, University College London: “Reprogramming stem cell-based strategies for skeletal muscle repair and (re)generation”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/extra-seminar-by-francesco-saverio-tedesco-university-college-london-reprogramming-stem-cell-based-strategies-for-skeletal-muscle-repair-and-regeneration/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4873113233,
size: 0.5,
source: 4873,
target: 113233,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4873) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1132334873,
size: 0.5,
source: 113233,
target: 4873 });
// 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: 113115,
label: 'EVENT: PhD Thesis defense: “Implication of DNA damage and repair in viability and differentiation of muscle stem cells”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/phd-thesis-defense-implication-of-dna-damage-and-repair-in-viability-and-differentiation-of-muscle-stem-cells/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 4873113115,
size: 0.5,
source: 4873,
target: 113115,
});
//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: 4878,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1131154878,
size: 0.5,
source: 113115,
target: 4878 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4873) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1131154873,
size: 0.5,
source: 113115,
target: 4873 });
//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: 1131154876,
size: 0.5,
source: 113115,
target: 4876 });
// 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: 85630,
label: 'PROGRAM_PROJECT: Ageing & Longevity',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/program_project/ageing-longevity/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 487385630,
size: 0.5,
source: 4873,
target: 85630,
});
//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: 6816,
label: 'Clementine Schilte',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-clementine-schilte-photo-2022-scaled-e1692277761405-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/clementine-schilte/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 856306816,
size: 0.5,
source: 85630,
target: 6816 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4873) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 856304873,
size: 0.5,
source: 85630,
target: 4873 });
//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: 60986,
label: 'Lida Katsimpardi',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/03/research_pasteur-dsc1996-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/lida-katsimpardi/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 8563060986,
size: 0.5,
source: 85630,
target: 60986 });
// 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: 70268,
label: 'PROJECT: DNA repair in muscle stem cells and during cell differentiation',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/05/research.pasteur.fr_sat_haser2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/dna-repair-in-muscle-stem-cells-and-during-cell-differentiation/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 487370268,
size: 0.5,
source: 4873,
target: 70268,
});
//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: 8292,
label: 'Benjamin Montagne',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-benjamin-montagne-benjamin-montagne-mr-300-px-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/benjamin-montagne/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 702688292,
size: 0.5,
source: 70268,
target: 8292 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4873) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 702684873,
size: 0.5,
source: 70268,
target: 4873 });
// 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: 70166,
label: 'EVENT: 17th International Conference on Oxidative Stress Reduction, Redox Homeostasis and Antioxidants',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/05/research.pasteur.fr_banner-antioxidants-normal-150x150.png',
page_url: 'https://research.pasteur.fr/en/event/17th-international-conference-on-oxidative-stress-reduction-redox-homeostasis-and-antioxidants/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 487370166,
size: 0.5,
source: 4873,
target: 70166,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4873) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 701664873,
size: 0.5,
source: 70166,
target: 4873 });
// 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: 70160,
label: 'PROJECT: Mechanism of ageing and progeroid diseases',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/05/research.pasteur.fr_healthy-primary-cell-actinred-tom22green-3-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/mechanism-of-ageing-and-progeroid-diseases/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 487370160,
size: 0.5,
source: 4873,
target: 70160,
});
//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: 4868,
label: 'Clément Crochemore',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=4868',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 701604868,
size: 0.5,
source: 70160,
target: 4868 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8292) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 701608292,
size: 0.5,
source: 70160,
target: 8292 });
//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: 143177,
label: 'Tara Fournier',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2020/06/research_pasteur-tara-fournier-photo-pasteur-e1630573578576-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/tara-fournier/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 70160143177,
size: 0.5,
source: 70160,
target: 143177 });
//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: 165455,
label: 'Chiara Cimmaruta',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/08/research_pasteur-chiara-cimmaruta-photo-chiara-cimmaruta-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/chiara-cimmaruta/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 70160165455,
size: 0.5,
source: 70160,
target: 165455 });
//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: 106933,
label: 'Cristina Fernandez Molina',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/01/research_pasteur-cristina-fernandez-molina-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/cristina-fernandez-molina/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 70160106933,
size: 0.5,
source: 70160,
target: 106933 });
//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: 171674,
label: 'Claire Lagu',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=171674',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 70160171674,
size: 0.5,
source: 70160,
target: 171674 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4873) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 701604873,
size: 0.5,
source: 70160,
target: 4873 });
// 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: 53709,
label: 'PROJECT: Muscle Stem Cells & Sepsis',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/11/research.pasteur.fr_illustration-sepsis-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/muscle-stem-cells-sepsis/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 487353709,
size: 0.5,
source: 4873,
target: 53709,
});
//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: 8668,
label: 'David Briand',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_37639-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/david-briand/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 537098668,
size: 0.5,
source: 53709,
target: 8668 });
//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: 8676,
label: 'Tarek Sharshar',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/11/research.pasteur.fr_img_20151120_154248-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/tarek-sharshar/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 537098676,
size: 0.5,
source: 53709,
target: 8676 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4868) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 537094868,
size: 0.5,
source: 53709,
target: 4868 });
//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: 59370,
label: 'Adrien Bouglé',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=59370',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 5370959370,
size: 0.5,
source: 53709,
target: 59370 });
//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: 4070,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 537094070,
size: 0.5,
source: 53709,
target: 4070 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4873) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 537094873,
size: 0.5,
source: 53709,
target: 4873 });
//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: 4865,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 537094865,
size: 0.5,
source: 53709,
target: 4865 });
//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: 6382,
label: 'Fabrice Chretien',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_sans-titre1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/fabrice-chretien/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 537096382,
size: 0.5,
source: 53709,
target: 6382 });
// 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: 24442,
label: 'TEAM: Molecular Mechanisms of Pathological and Physiological Ageing',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_induced-pluripotent-stem-cells-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/molecular-mechanisms-of-pathological-and-physiological-ageing/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 487324442,
size: 0.5,
source: 4873,
target: 24442,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 8292) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 244428292,
size: 0.5,
source: 24442,
target: 8292 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 165455) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 24442165455,
size: 0.5,
source: 24442,
target: 165455 });
//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: 213066,
label: 'Eugenia Pugliese',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/11/research_pasteur-eneugenia-pugliese-eugeniapugliese-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/eugenia-pugliese/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 24442213066,
size: 0.5,
source: 24442,
target: 213066 });
//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: 4073,
label: 'Franck Verdonk',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_uge3dfb5-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/franck-verdonk/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 244424073,
size: 0.5,
source: 24442,
target: 4073 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 143177) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 24442143177,
size: 0.5,
source: 24442,
target: 143177 });
//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: 210357,
label: 'Marin Biliskov',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/10/research_pasteur-img-20230918-165342-hdr-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marin-biliskov/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 24442210357,
size: 0.5,
source: 24442,
target: 210357 });
//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: 231704,
label: 'Sixi Xing',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/10/research_pasteur-ensixi-xingfrsixi-xing-sixi-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/sixi-xing/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 24442231704,
size: 0.5,
source: 24442,
target: 231704 });
//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: 231708,
label: 'Angela García Pelayo',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/10/research_pasteur-enangela-garcia-pelayofrangela-garcia-pelayo-photo-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/angela-garcia-pelayo/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 24442231708,
size: 0.5,
source: 24442,
target: 231708 });
//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: 212681,
label: 'Natalie Chan',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/11/research_pasteur-ennatalie-chan-natalie-chan-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/natalie-chan/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 24442212681,
size: 0.5,
source: 24442,
target: 212681 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4873) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 244424873,
size: 0.5,
source: 24442,
target: 4873 });
// 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: 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: 487321426,
size: 0.5,
source: 4873,
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
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: 4824,
label: 'François Schweisguth',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/05/research_pasteur-fs3-3-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/francois-schweisguth/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 214264824,
size: 0.5,
source: 21426,
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: 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: 214264606,
size: 0.5,
source: 21426,
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: 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: 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: 'https://research.pasteur.fr/wp-content/uploads/2023/01/research_pasteur-encecile-martinat-i-stem-evry-1725439907679-150x150.jpg',
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: 'https://research.pasteur.fr/wp-content/uploads/2023/01/research_pasteur-enalice-jouneau-epee-inrae-alice-jouneau2-150x150.jpg',
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: 'https://research.pasteur.fr/wp-content/uploads/2023/01/research_pasteur-enraphael-scharfmann-institut-cochin-paris-raphael-scharfmann-150x150.jpg',
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 });
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) {
});