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: 4851,
	label: 'Agathe Subtil',
    type: 'image',
    url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_photo-a-subtil-150x150.jpg',
    x: 0,
    y: 0,
	size: 30,
	color: '#DDDDDD'
});
var biggest_node_size = 0;
N=7
	// 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: 215597,
		label: 'PROJECT: DNA damage during Chlamydia infection',
	    x: x_node,
	    y: y_node,
	    type: 'image',
	    url: 'https://research.pasteur.fr/wp-content/uploads/2023/12/research_pasteur-encee-210426-48hpi-h4k20me3a488-h3k79me2a647bar-2-c1-3-150x150.jpg',
	    page_url: 'https://research.pasteur.fr/en/project/dna-damage-during-chlamydia-infection/',
		size: 35,
		color: '#DDDDDD'
	});
	//link content to central post
    g.edges.push({
      id: 4851215597,
      size: 0.5,
      source: 4851,
      target: 215597,
    });
	
		
					//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: 194195,
					label: 'Felix Louchez',
			    	type: 'image',
			    	url: 'https://research.pasteur.fr/wp-content/uploads/2023/01/research_pasteur-felixlouchez-150x150.jpg',
			    	page_url: 'https://research.pasteur.fr/en/member/felix-louchez/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 215597194195,
		      	size: 0.5,
		      	source: 215597,
		      	target: 194195		    	});
	
	
	
	
								
			
					//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: 221419,
					label: 'Flavie KOWANDY',
			    	type: 'image',
			    	url: '',
			    	page_url: 'https://research.pasteur.fr/en/member/flavie-kowandy/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 215597221419,
		      	size: 0.5,
		      	source: 215597,
		      	target: 221419		    	});
	
	
	
	
								
			
					//check if content already exist
				
	
				// update node size depending on the amount of edges
				g.nodes.forEach(function(n) {
					if (n.id == 4851) {
						n.size = n.size + 8;
					}
				});
	
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 2155974851,
		      	size: 0.5,
		      	source: 215597,
		      	target: 4851		    	});
	
	
	
	
								
			
	
	
	// 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: 179140,
		label: 'PROJECT: TheraEPI',
	    x: x_node,
	    y: y_node,
	    type: 'image',
	    url: '',
	    page_url: 'https://research.pasteur.fr/en/project/theraepi/',
		size: 35,
		color: '#DDDDDD'
	});
	//link content to central post
    g.edges.push({
      id: 4851179140,
      size: 0.5,
      source: 4851,
      target: 179140,
    });
	
		
					//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: 4009,
					label: 'Carmen Buchrieser',
			    	type: 'image',
			    	url: 'https://research.pasteur.fr/wp-content/uploads/2015/06/research.pasteur.fr_carmen1-150x150.jpg',
			    	page_url: 'https://research.pasteur.fr/en/member/carmen-buchrieser/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 1791404009,
		      	size: 0.5,
		      	source: 179140,
		      	target: 4009		    	});
	
	
	
	
								
			
					//check if content already exist
				
	
				// update node size depending on the amount of edges
				g.nodes.forEach(function(n) {
					if (n.id == 4851) {
						n.size = n.size + 8;
					}
				});
	
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 1791404851,
		      	size: 0.5,
		      	source: 179140,
		      	target: 4851		    	});
	
	
	
	
								
			
					//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: 1791404087,
		      	size: 0.5,
		      	source: 179140,
		      	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: 70499,
					label: 'Olivier Sperandio',
			    	type: 'image',
			    	url: 'https://research.pasteur.fr/wp-content/uploads/2016/05/research.pasteur.fr_sperandio-id-photo-150x150.jpg',
			    	page_url: 'https://research.pasteur.fr/en/member/olivier-sperandio/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 17914070499,
		      	size: 0.5,
		      	source: 179140,
		      	target: 70499		    	});
	
	
	
	
								
			
					//check if content already exist
				
				if (x_node<0){
					x_site = x_node + ((Math.random() * 2)-1) - offset_left;
				}else{
					x_site = x_node + ((Math.random() * 2)-1) + offset_left;
				}
	
				if (y_node<0){
					y_site = y_node + ((Math.random() * 2)-1) - offset_left;
				}else{
					y_site = y_node + ((Math.random() * 2)-1) + offset_left;
				}
	
	
				// adding site
				g.nodes.push({
					id: 1056,
					label: 'Mariette Matondo',
			    	type: 'image',
			    	url: 'https://research.pasteur.fr/wp-content/uploads/2015/02/Mariette_Matondo-e1424076805247-150x150.jpg',
			    	page_url: 'https://research.pasteur.fr/en/member/mariette-matondo-bouzanda/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 1791401056,
		      	size: 0.5,
		      	source: 179140,
		      	target: 1056		    	});
	
	
	
	
								
			
					//check if content already exist
				
				if (x_node<0){
					x_site = x_node + ((Math.random() * 2)-1) - offset_left;
				}else{
					x_site = x_node + ((Math.random() * 2)-1) + offset_left;
				}
	
				if (y_node<0){
					y_site = y_node + ((Math.random() * 2)-1) - offset_left;
				}else{
					y_site = y_node + ((Math.random() * 2)-1) + offset_left;
				}
	
	
				// adding site
				g.nodes.push({
					id: 95915,
					label: 'Paola Arimondo',
			    	type: 'image',
			    	url: 'https://research.pasteur.fr/wp-content/uploads/2017/10/research_pasteur-p-arimondo_5757-150x150.jpg',
			    	page_url: 'https://research.pasteur.fr/en/member/paola-arimondo/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 17914095915,
		      	size: 0.5,
		      	source: 179140,
		      	target: 95915		    	});
	
	
	
	
								
			
	
	
	// 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: 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: 4851121754,
      size: 0.5,
      source: 4851,
      target: 121754,
    });
	
		
			
					//check if content already exist
				
	
				// update node size depending on the amount of edges
				g.nodes.forEach(function(n) {
					if (n.id == 4851) {
						n.size = n.size + 8;
					}
				});
	
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 1217544851,
		      	size: 0.5,
		      	source: 121754,
		      	target: 4851		    	});
	
	
	
	
								
			
					//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: 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',
			    	page_url: 'https://research.pasteur.fr/en/member/arnaud-echard/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 1217543788,
		      	size: 0.5,
		      	source: 121754,
		      	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: 10219,
		label: 'PROJECT: Chlamydia and the emergence of Plants',
	    x: x_node,
	    y: y_node,
	    type: 'image',
	    url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_paysagesancy-150x150.jpg',
	    page_url: 'https://research.pasteur.fr/en/project/chlamydia-and-the-emergence-of-plants/',
		size: 35,
		color: '#DDDDDD'
	});
	//link content to central post
    g.edges.push({
      id: 485110219,
      size: 0.5,
      source: 4851,
      target: 10219,
    });
	
		
					//check if content already exist
				
	
				// update node size depending on the amount of edges
				g.nodes.forEach(function(n) {
					if (n.id == 4851) {
						n.size = n.size + 8;
					}
				});
	
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 102194851,
		      	size: 0.5,
		      	source: 10219,
		      	target: 4851		    	});
	
	
	
	
								
			
					//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: 8209,
					label: 'Lena Gehre',
			    	type: 'image',
			    	url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_lena-150x150.jpeg',
			    	page_url: 'https://research.pasteur.fr/en/member/lena-gehre/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 102198209,
		      	size: 0.5,
		      	source: 10219,
		      	target: 8209		    	});
	
	
	
	
								
			
	
	
	// 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: 10216,
		label: 'PROJECT: Building the parasitophorous vacuole',
	    x: x_node,
	    y: y_node,
	    type: 'image',
	    url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_emchlamydia1-150x150.jpg',
	    page_url: 'https://research.pasteur.fr/en/project/intracellular-traffic/',
		size: 35,
		color: '#DDDDDD'
	});
	//link content to central post
    g.edges.push({
      id: 485110216,
      size: 0.5,
      source: 4851,
      target: 10216,
    });
	
		
					//check if content already exist
				
	
				// update node size depending on the amount of edges
				g.nodes.forEach(function(n) {
					if (n.id == 4851) {
						n.size = n.size + 8;
					}
				});
	
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 102164851,
		      	size: 0.5,
		      	source: 10216,
		      	target: 4851		    	});
	
	
	
	
								
			
					//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: 8211,
					label: 'Stéphanie Perrinet',
			    	type: 'image',
			    	url: 'https://research.pasteur.fr/wp-content/uploads/2015/07/research.pasteur.fr_perrinet-150x150.jpeg',
			    	page_url: 'https://research.pasteur.fr/en/member/stephanie-perrinet/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 102168211,
		      	size: 0.5,
		      	source: 10216,
		      	target: 8211		    	});
	
	
	
	
								
			
					//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: 138677,
					label: 'Laure Blanchet',
			    	type: 'image',
			    	url: '',
			    	page_url: 'https://research.pasteur.fr/en/?post_type=member&p=138677',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 10216138677,
		      	size: 0.5,
		      	source: 10216,
		      	target: 138677		    	});
	
	
	
	
								
			
					//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: 166535,
					label: 'Klementina Borovnik',
			    	type: 'image',
			    	url: 'https://research.pasteur.fr/wp-content/uploads/2021/09/research_pasteur-klementina-borovnik-20210822-174400-03-150x150.jpeg',
			    	page_url: 'https://research.pasteur.fr/en/member/klementina-borovnik/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 10216166535,
		      	size: 0.5,
		      	source: 10216,
		      	target: 166535		    	});
	
	
	
	
								
			
	
	
	// 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: 10214,
		label: 'PROJECT: ERC-2011-StG NUChLEAR',
	    x: x_node,
	    y: y_node,
	    type: 'image',
	    url: 'https://research.pasteur.fr/wp-content/uploads/2015/09/research.pasteur.fr_erc3-150x150.jpg',
	    page_url: 'https://research.pasteur.fr/en/project/host-pathogen-interactions-in-the-nucleus/',
		size: 35,
		color: '#DDDDDD'
	});
	//link content to central post
    g.edges.push({
      id: 485110214,
      size: 0.5,
      source: 4851,
      target: 10214,
    });
	
		
					//check if content already exist
				
	
				// update node size depending on the amount of edges
				g.nodes.forEach(function(n) {
					if (n.id == 4851) {
						n.size = n.size + 8;
					}
				});
	
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 102144851,
		      	size: 0.5,
		      	source: 10214,
		      	target: 4851		    	});
	
	
	
	
								
			
					//check if content already exist
				
	
				// update node size depending on the amount of edges
				g.nodes.forEach(function(n) {
					if (n.id == 8211) {
						n.size = n.size + 8;
					}
				});
	
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 102148211,
		      	size: 0.5,
		      	source: 10214,
		      	target: 8211		    	});
	
	
	
	
								
			
	
	
	// 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: 6141,
		label: 'TEAM: Cellular Biology of Microbial Infection',
	    x: x_node,
	    y: y_node,
	    type: 'image',
	    url: 'https://research.pasteur.fr/wp-content/uploads/2015/05/research.pasteur.fr_biology-of-cell-interactions-150x150.jpg',
	    page_url: 'https://research.pasteur.fr/en/team/cellular-biology-of-microbial-infection/',
		size: 35,
		color: '#DDDDDD'
	});
	//link content to central post
    g.edges.push({
      id: 48516141,
      size: 0.5,
      source: 4851,
      target: 6141,
    });
	
		
					//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: 8308,
					label: 'Laurence Langlais',
			    	type: 'image',
			    	url: 'https://research.pasteur.fr/wp-content/uploads/2016/06/research.pasteur.fr_laurencelanglais-150x150.jpg',
			    	page_url: 'https://research.pasteur.fr/en/member/laurence-langlais/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 61418308,
		      	size: 0.5,
		      	source: 6141,
		      	target: 8308		    	});
	
	
	
	
								
			
					//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: 4853,
					label: 'Yongzheng Wu',
			    	type: 'image',
			    	url: 'https://research.pasteur.fr/wp-content/uploads/2018/04/research_pasteur-dscf0007-5-150x150.jpg',
			    	page_url: 'https://research.pasteur.fr/en/member/yongzheng-wu/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 61414853,
		      	size: 0.5,
		      	source: 6141,
		      	target: 4853		    	});
	
	
	
	
								
			
					//check if content already exist
				
	
				// update node size depending on the amount of edges
				g.nodes.forEach(function(n) {
					if (n.id == 221419) {
						n.size = n.size + 8;
					}
				});
	
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 6141221419,
		      	size: 0.5,
		      	source: 6141,
		      	target: 221419		    	});
	
	
	
	
								
			
					//check if content already exist
				
	
				// update node size depending on the amount of edges
				g.nodes.forEach(function(n) {
					if (n.id == 8211) {
						n.size = n.size + 8;
					}
				});
	
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 61418211,
		      	size: 0.5,
		      	source: 6141,
		      	target: 8211		    	});
	
	
	
	
								
			
					//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: 8208,
					label: 'Béatrice Niragire',
			    	type: 'image',
			    	url: 'https://research.pasteur.fr/wp-content/uploads/2015/08/research.pasteur.fr_14b.-niragire-150x150.jpg',
			    	page_url: 'https://research.pasteur.fr/en/member/beatrice-niragire/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 61418208,
		      	size: 0.5,
		      	source: 6141,
		      	target: 8208		    	});
	
	
	
	
								
			
					//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: 166537,
					label: 'Camille Dos Santos-Toinet',
			    	type: 'image',
			    	url: 'https://research.pasteur.fr/wp-content/uploads/2021/09/research_pasteur-camille-dos-santos-toinet-groupe04-03-mdweb-1708291355359-e1708294149588-150x150.jpg',
			    	page_url: 'https://research.pasteur.fr/en/member/camille-dos-santos/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 6141166537,
		      	size: 0.5,
		      	source: 6141,
		      	target: 166537		    	});
	
	
	
	
								
			
					//check if content already exist
				
	
				// update node size depending on the amount of edges
				g.nodes.forEach(function(n) {
					if (n.id == 166535) {
						n.size = n.size + 8;
					}
				});
	
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 6141166535,
		      	size: 0.5,
		      	source: 6141,
		      	target: 166535		    	});
	
	
	
	
								
			
					//check if content already exist
				
	
				// update node size depending on the amount of edges
				g.nodes.forEach(function(n) {
					if (n.id == 194195) {
						n.size = n.size + 8;
					}
				});
	
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 6141194195,
		      	size: 0.5,
		      	source: 6141,
		      	target: 194195		    	});
	
	
	
	
								
			
					//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: 211579,
					label: 'Xiaonan Cai',
			    	type: 'image',
			    	url: 'https://research.pasteur.fr/wp-content/uploads/2023/10/research_pasteur-enxiaonan-caifrxiaonan-cai-xiaonan-150x150.jpg',
			    	page_url: 'https://research.pasteur.fr/en/member/xiaonan-cai/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 6141211579,
		      	size: 0.5,
		      	source: 6141,
		      	target: 211579		    	});
	
	
	
	
								
			
					//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: 251045,
					label: 'Maria Colonna',
			    	type: 'image',
			    	url: 'https://research.pasteur.fr/wp-content/uploads/2025/10/research_pasteur-maria-colonna-m.-colonna-150x150.jpg',
			    	page_url: 'https://research.pasteur.fr/en/member/maria-colonna/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 6141251045,
		      	size: 0.5,
		      	source: 6141,
		      	target: 251045		    	});
	
	
	
	
								
			
					//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: 242072,
					label: 'Rahil Chougui',
			    	type: 'image',
			    	url: 'https://research.pasteur.fr/wp-content/uploads/2025/04/research_pasteur-rahil-chougui-1749109213524-1-150x150.jpg',
			    	page_url: 'https://research.pasteur.fr/en/member/rahil-chougui/',
			    	x: x_site,
			    	y: y_site,
					size: 10,
					color: '#dddddd'
				});
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 6141242072,
		      	size: 0.5,
		      	source: 6141,
		      	target: 242072		    	});
	
	
	
	
								
			
					//check if content already exist
				
	
				// update node size depending on the amount of edges
				g.nodes.forEach(function(n) {
					if (n.id == 4851) {
						n.size = n.size + 8;
					}
				});
	
	
	    		
	    		//link to content
		    	g.edges.push({
		      	id: 61414851,
		      	size: 0.5,
		      	source: 6141,
		      	target: 4851		    	});
	
	
	
	
								
			
	
	
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) {
});