code: function(component){
  		var edges = 0;
  		for(var i=0;i<component.nodes.length;i++){
  			var node = component.nodes[i];
  			edges += node.nodes.length;
  			
  			this.setComponentRefs(node.obj, component);
  		}
  		component.circuits = (edges>>1) - component.nodes.length + 1;
  		
  		this.setExtraData(component);
  	}
docs: -------------------------------------------------------------------------------- graph.setComponentInfo() Componentオブジェクトのデータを設定する --------------------------------------------------------------------------------