function addNodes(nodes) {
		graph.nodes =graph.nodes || [];
		if (nodes!==undefined && nodes.length) {
			nodes.forEach(function(node, index) {
				if (findNode(node.id)===undefined) {
					graph.nodes.push(node);
				}
			});
		}
	}
//Add unique nodes to the graph and ignores the rest

Add unique nodes to the graph and ignores the rest
Add unique nodes to the graph and ignores the rest
function addNodes(nodes) {
		graph.nodes =graph.nodes || [];
		if (nodes!==undefined && nodes.length) {
			nodes.forEach(function(node, index) {
				if (findNode(node.id)===undefined) {
					graph.nodes.push(node);
				}
			});
		}
	}
function addNodes ( nodes ) { graph . nodes = graph . nodes || [ ] ; if ( nodes !== undefined && nodes . length ) { nodes . forEach ( function ( node , index ) { if ( findNode ( node . id ) === undefined ) { graph . nodes . push ( node ) ; } } ) ; } }
Add unique nodes to the graph and ignores the rest
Add unique nodes to the graph and ignores the rest