public/javascripts/WireIt/plugins/layout/js/Layout.js
function() {
		
		this.nodes = [];
		this.edges = [];
		
		// Extract wires
		for(var i = 0 ; i < this.layer.wires.length ; i++) {
			var wire = this.layer.wires[i];
			this.edges.push([this.layer.containers.indexOf(wire.terminal1.container), this.layer.containers.indexOf(wire.terminal2.container) ]);
		}	
		
	}
function() {
		
		this.nodes = [];
		this.edges = [];
		
		// Extract wires
		for(var i = 0 ; i < this.layer.wires.length ; i++) {
			var wire = this.layer.wires[i];
			this.edges.push([this.layer.containers.indexOf(wire.terminal1.container), this.layer.containers.indexOf(wire.terminal2.container) ]);
		}	
		
	}
function ( ) { this . nodes = [ ] ; this . edges = [ ] ; // Extract wires for ( var i = 0 ; i < this . layer . wires . length ; i ++ ) { var wire = this . layer . wires [ i ] ; this . edges . push ( [ this . layer . containers . indexOf ( wire . terminal1 . container ) , this . layer . containers . indexOf ( wire . terminal2 . container ) ] ) ; } }
Init the default structure
Init the default structure