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: 3788,
label: 'Arnaud Echard',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-arnaud-echard-aechard-v2-2-150x150.jpg',
x: 0,
y: 0,
size: 30,
color: '#DDDDDD'
});
var biggest_node_size = 0;
N=13
// 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: 235776,
label: 'NEWS: The paper by Thomas Serrano, Stéphane Frémont, Frédérique Cuvelier and Arnaud Echard has been commented on and is being published on the CNRS biology website',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/the-paper-by-thomas-serrano-stephane-fremont-frederique-cuvelier-and-arnaud-echard-has-been-commented-on-and-is-being-published-on-the-cnrs-biology-website/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3788235776,
size: 0.5,
source: 3788,
target: 235776,
});
//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: 155945,
label: 'Thomas Serrano',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/03/research_pasteur-thomas-serrano-photo-identite-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/thomas-serrano/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 235776155945,
size: 0.5,
source: 235776,
target: 155945 });
//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: 4232,
label: 'Stéphane Fremont',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_fremont-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/stephane-fremont/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 2357764232,
size: 0.5,
source: 235776,
target: 4232 });
//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: 102508,
label: 'Frédérique Cuvelier',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/01/research_pasteur-frederique-cuvelier-2012-11-27-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/frederique-cuvelier/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 235776102508,
size: 0.5,
source: 235776,
target: 102508 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3788) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 2357763788,
size: 0.5,
source: 235776,
target: 3788 });
// 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: 197224,
label: 'EVENT: BCI seminar – “The roles of lipids in cell biology”',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/bci-seminar-the-roles-of-lipids-in-cell-biology/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3788197224,
size: 0.5,
source: 3788,
target: 197224,
});
//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: 4230,
label: 'Neetu Gupta-Rossi',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_gupta-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/neetu-gupta/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1972244230,
size: 0.5,
source: 197224,
target: 4230 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3788) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1972243788,
size: 0.5,
source: 197224,
target: 3788 });
//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: 108860,
label: 'Timothy Wai',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/06/research_pasteur-timothy-wai-tim-wai-headshot-2023-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/timothy-wai/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 197224108860,
size: 0.5,
source: 197224,
target: 108860 });
//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: 4087,
label: 'Mélanie Hamon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/01/research.pasteur.fr_p1010312-version-2-4-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/melanie-hamon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1972244087,
size: 0.5,
source: 197224,
target: 4087 });
//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: 4470,
label: 'Marc Lecuit',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/05/research_pasteur-sans-titre-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marc-lecuit/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1972244470,
size: 0.5,
source: 197224,
target: 4470 });
// 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: 194569,
label: 'PROJECT: Project 1: Cytoskeleton remodeling in the late steps of cytokinesis',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_membrane-traffic-and-cell-division1-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/project-1-cytoskeleton-remodeling-in-the-late-steps-of-cytokinesis/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3788194569,
size: 0.5,
source: 3788,
target: 194569,
});
//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: 129024,
label: 'Murielle Serres',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/07/research_pasteur-murielle-serres-murielle-essai-3-1-150x150.png',
page_url: 'https://research.pasteur.fr/en/member/murielle-serres/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 194569129024,
size: 0.5,
source: 194569,
target: 129024 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 102508) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 194569102508,
size: 0.5,
source: 194569,
target: 102508 });
//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: 106836,
label: 'Tamara Advedissian',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2018/05/research_pasteur-dkgossfzakqosx9jlw1tbzqviks-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/tamara-advedissian/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 194569106836,
size: 0.5,
source: 194569,
target: 106836 });
//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: 179597,
label: 'Anakine Prizins',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2022/04/research_pasteur-anakine-prizins-anakine-web2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/anakine-prizins/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 194569179597,
size: 0.5,
source: 194569,
target: 179597 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3788) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1945693788,
size: 0.5,
source: 194569,
target: 3788 });
// 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: 194561,
label: 'PROJECT: Project 2- New molecular pathways driving cytokinetic abscission',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_membrane-traffic-and-cell-division2-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/project-2-new-molecular-pathways-driving-cytokinetic-abscission/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3788194561,
size: 0.5,
source: 3788,
target: 194561,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 129024) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 194561129024,
size: 0.5,
source: 194561,
target: 129024 });
//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: 169378,
label: 'Julie Thomsen',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/10/research_pasteur-thomsenjulie-photo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/julie-thomsen/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 194561169378,
size: 0.5,
source: 194561,
target: 169378 });
//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: 6847,
label: 'Nathalie Sassoon',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_fig8-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/nathalie-sassoon/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1945616847,
size: 0.5,
source: 194561,
target: 6847 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 106836) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 194561106836,
size: 0.5,
source: 194561,
target: 106836 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 102508) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 194561102508,
size: 0.5,
source: 194561,
target: 102508 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3788) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1945613788,
size: 0.5,
source: 194561,
target: 3788 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4230) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1945614230,
size: 0.5,
source: 194561,
target: 4230 });
// 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: 194509,
label: 'PROJECT: Project 3- New parallels between cytokinetic abscission and viral budding',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/01/research_pasteur-enproject-3-new-parallels-between-cytokinetic-abscission-and-viral-budding-research-pasteur-enproject-3-new-parallels-between-cytokinetic-abscission-and-viral-budding-viralbuds-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/project/project-3-new-parallels-between-cytokinetic-abscission-and-viral-budding/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3788194509,
size: 0.5,
source: 3788,
target: 194509,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 155945) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 194509155945,
size: 0.5,
source: 194509,
target: 155945 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3788) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1945093788,
size: 0.5,
source: 194509,
target: 3788 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4232) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1945094232,
size: 0.5,
source: 194509,
target: 4232 });
// 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: 162656,
label: 'TOOL: Flemmingsome- A Midbody Remnant Proteome database',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2021/07/research_pasteur-flemmingsome-a-midbody-remnant-proteome-database-webbanner-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/tool/flemmingsome-a-midbody-remnant-proteome-database/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3788162656,
size: 0.5,
source: 3788,
target: 162656,
});
//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: 6820,
label: 'Hervé Menager',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/10/research.pasteur.fr_face-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/herve-menager/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1626566820,
size: 0.5,
source: 162656,
target: 6820 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4230) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1626564230,
size: 0.5,
source: 162656,
target: 4230 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3788) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1626563788,
size: 0.5,
source: 162656,
target: 3788 });
// 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: 185801,
label: 'PROJECT: ANR 2022 – RabReprogram',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/project/fr-anr-2022-rabreprogram/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3788185801,
size: 0.5,
source: 3788,
target: 185801,
});
//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: 4237,
label: 'Jost Enninga',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2016/06/research.pasteur.fr_jost2015-3-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/jost-enninga/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1858014237,
size: 0.5,
source: 185801,
target: 4237 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3788) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1858013788,
size: 0.5,
source: 185801,
target: 3788 });
//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: 118432,
label: 'Matthijn Vos',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/04/research_pasteur-matthijn-vos-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/matthijn-vos/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 185801118432,
size: 0.5,
source: 185801,
target: 118432 });
// 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: 155932,
label: 'NEWS: BST2, a common trait between viral infections and midbodies',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/news/bst2-a-common-trait-between-viral-infections-and-midbodies/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3788155932,
size: 0.5,
source: 3788,
target: 155932,
});
//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: 58517,
label: 'Adrien Presle',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/12/research.pasteur.fr_adrien-presle-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/adrien-presle/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 15593258517,
size: 0.5,
source: 155932,
target: 58517 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4232) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1559324232,
size: 0.5,
source: 155932,
target: 4232 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 6847) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1559326847,
size: 0.5,
source: 155932,
target: 6847 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4230) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1559324230,
size: 0.5,
source: 155932,
target: 4230 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3788) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1559323788,
size: 0.5,
source: 155932,
target: 3788 });
// 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: 129780,
label: 'PROJECT: Endothelium disruption by toxin-induced transcellular tunnels',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2019/07/research_pasteur-capture-decran-2019-07-23-a-11.13.53-150x150.png',
page_url: 'https://research.pasteur.fr/en/project/toxins-and-endothelial-barrier/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3788129780,
size: 0.5,
source: 3788,
target: 129780,
});
//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: 80593,
label: 'Camille Morel',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=80593',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 12978080593,
size: 0.5,
source: 129780,
target: 80593 });
//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: 4101,
label: 'Marie-Anne Nahori',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_nahori-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marie-anne-nahori/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1297804101,
size: 0.5,
source: 129780,
target: 4101 });
//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: 4247,
label: '',
type: 'image',
url: '',
page_url: '',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1297804247,
size: 0.5,
source: 129780,
target: 4247 });
//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: 4634,
label: 'Stéphane Dallongeville',
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/?post_type=member&p=4634',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1297804634,
size: 0.5,
source: 129780,
target: 4634 });
//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: 388,
label: 'Jean-Christophe Olivo-Marin',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2025/02/research_pasteur-jcom2022-s-jcom2022-s-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/jean-christophe-olivo-marin/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 129780388,
size: 0.5,
source: 129780,
target: 388 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3788) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1297803788,
size: 0.5,
source: 129780,
target: 3788 });
//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: 92462,
label: 'Emmanuel Lemichez',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2017/07/research_pasteur-lemichez-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/emmanuel-lemichez/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 12978092462,
size: 0.5,
source: 129780,
target: 92462 });
// 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: 121754,
label: 'TEAM: UMR3691 – Physiological and pathological cell biology',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/team/physiological-and-pathological-cell-biology/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3788121754,
size: 0.5,
source: 3788,
target: 121754,
});
//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: 4851,
label: 'Agathe Subtil',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_photo-a-subtil-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/agathe-subtil/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 1217544851,
size: 0.5,
source: 121754,
target: 4851 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3788) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1217543788,
size: 0.5,
source: 121754,
target: 3788 });
// 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: 102123,
label: 'EVENT: “An iron hand over cancer stem cells” by Raphaël Rodriguez',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/iron-hand-cancer-stem-cells-raphael-rodriguez/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 3788102123,
size: 0.5,
source: 3788,
target: 102123,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3788) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1021233788,
size: 0.5,
source: 102123,
target: 3788 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4230) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 1021234230,
size: 0.5,
source: 102123,
target: 4230 });
// 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: 92114,
label: 'EVENT: “Clathrin plaques and associated dynamin 2 organize a mechanosensitive compartment” – Stéphane Vassilopoulos',
x: x_node,
y: y_node,
type: 'image',
url: '',
page_url: 'https://research.pasteur.fr/en/event/clathrin-plaques-and-associated-dynamin-2-organize-a-mechanosensitive-compartment-stephane-vassilopoulos/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 378892114,
size: 0.5,
source: 3788,
target: 92114,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3788) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 921143788,
size: 0.5,
source: 92114,
target: 3788 });
// 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: 6462,
label: 'TEAM: Membrane Traffic and Cell Division',
x: x_node,
y: y_node,
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_mtra-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/team/membrane-traffic-and-cell-division/',
size: 35,
color: '#DDDDDD'
});
//link content to central post
g.edges.push({
id: 37886462,
size: 0.5,
source: 3788,
target: 6462,
});
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4232) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 64624232,
size: 0.5,
source: 6462,
target: 4232 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 4230) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 64624230,
size: 0.5,
source: 6462,
target: 4230 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 102508) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6462102508,
size: 0.5,
source: 6462,
target: 102508 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 6847) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 64626847,
size: 0.5,
source: 6462,
target: 6847 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 129024) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6462129024,
size: 0.5,
source: 6462,
target: 129024 });
//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: 8553,
label: 'Reine Bouyssie',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research_pasteur-reine-bouyssie-rbessai1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/reine-bouyssie/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 64628553,
size: 0.5,
source: 6462,
target: 8553 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 155945) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6462155945,
size: 0.5,
source: 6462,
target: 155945 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 169378) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6462169378,
size: 0.5,
source: 6462,
target: 169378 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 179597) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 6462179597,
size: 0.5,
source: 6462,
target: 179597 });
//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: 204475,
label: 'Rayane Dibsy',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2023/07/research_pasteur-dibsy-rayane-photo-150x150.jpeg',
page_url: 'https://research.pasteur.fr/en/member/rayane-dibsy/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6462204475,
size: 0.5,
source: 6462,
target: 204475 });
//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: 226328,
label: 'Andela Petrovic',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/05/research_pasteur-andela-petrovic-website-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/andela-petrovic/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6462226328,
size: 0.5,
source: 6462,
target: 226328 });
//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: 232735,
label: 'Ferdinand Genet',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/10/research_pasteur-genet-ferdinand-v2-genet-ferdinand-v2-1-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/ferdinand-genet/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6462232735,
size: 0.5,
source: 6462,
target: 232735 });
//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: 232483,
label: 'Marie Crouigneau',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/10/research_pasteur-crouigneau-marie-v-2-crouigneau-marie-v-2-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/marie-crouigneau/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6462232483,
size: 0.5,
source: 6462,
target: 232483 });
//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: 232741,
label: 'Solène Huard',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/10/research_pasteur-ensolene-huardfrsolene-huard-huard-solene-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/solene-huard/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6462232741,
size: 0.5,
source: 6462,
target: 232741 });
//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: 233883,
label: 'Charalampos Koulloupas',
type: 'image',
url: 'https://research.pasteur.fr/wp-content/uploads/2024/11/research_pasteur-koulloupas-c-photo-koulloupas-c-photo-150x150.jpg',
page_url: 'https://research.pasteur.fr/en/member/233883/',
x: x_site,
y: y_site,
size: 10,
color: '#dddddd'
});
//link to content
g.edges.push({
id: 6462233883,
size: 0.5,
source: 6462,
target: 233883 });
//check if content already exist
// update node size depending on the amount of edges
g.nodes.forEach(function(n) {
if (n.id == 3788) {
n.size = n.size + 8;
}
});
//link to content
g.edges.push({
id: 64623788,
size: 0.5,
source: 6462,
target: 3788 });
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) {
});