function findNode(nodeId) {
		var foundNode;
		if (graph!==undefined && graph.nodes!==undefined && graph.nodes.length && nodeId!==undefined) {
			var nodesCount = graph.nodes.length;
			for (var index=0; index<nodesCount; index++) {
				if (graph.nodes[index].id === nodeId) {
					foundNode = graph.nodes[index];
					break;
				}
			}
		}
		return foundNode;
	}
// Finds the node in the graph by node id

Finds the node in the graph by node id
Finds the node in the graph by node id
function findNode(nodeId) {
		var foundNode;
		if (graph!==undefined && graph.nodes!==undefined && graph.nodes.length && nodeId!==undefined) {
			var nodesCount = graph.nodes.length;
			for (var index=0; index<nodesCount; index++) {
				if (graph.nodes[index].id === nodeId) {
					foundNode = graph.nodes[index];
					break;
				}
			}
		}
		return foundNode;
	}
function findNode ( nodeId ) { var foundNode ; if ( graph !== undefined && graph . nodes !== undefined && graph . nodes . length && nodeId !== undefined ) { var nodesCount = graph . nodes . length ; for ( var index = 0 ; index < nodesCount ; index ++ ) { if ( graph . nodes [ index ] . id === nodeId ) { foundNode = graph . nodes [ index ] ; break ; } } } return foundNode ; }
Finds the node in the graph by node id
Finds the node in the graph by node id