_vtx_index_tbl[v].setDatum(new Datum("Total Degree", new Double(m_degree[v])));
_vtx_index_tbl[v].setDatum(new Datum(DATUM_DEGREE, new Double(m_degree[v])));
	private void calculate() {		if (_vtx_index_tbl == null || _vtx_index_tbl.length < 1) {			System.out.println("[SNA] Warning: no graph loaded or graph contains no vertices.");			return;		}		int v;		double m_grpDensity = grp_density();		double m_grpTransitivity = grp_transitivity();		double [] m_betweenness = compute_betweenness();		double m_grpBetweenness = grp_betweenness(m_betweenness);		double [] m_closeness = compute_closeness();		double m_grpCloseness = grp_closeness(m_closeness);		int [] m_degree = compute_totaldegree();		int [] m_indegree = compute_indegree();		int [] m_outdegree = compute_outdegree();		double m_grpDegree = grp_degree(m_degree);		_graph.setDatum(new Datum("Group Density", new Double(m_grpDensity)));		System.out.println("   Group Density = " + m_grpDensity);		_graph.setDatum(new Datum("Group Transitivity", new Double(m_grpTransitivity)));		System.out.println("   Group Transitivity = " + m_grpTransitivity);		_graph.setDatum(new Datum("Group Betweenness", new Double(m_grpBetweenness)));		System.out.println("   Group Betweenness= " + m_grpBetweenness);		_graph.setDatum(new Datum("Group Closeness", new Double(m_grpCloseness)));		System.out.println("   Group Closeness= " + m_grpCloseness);		_graph.setDatum(new Datum("Group Degree", new Double(m_grpDegree)));		System.out.println("   Group Degree = " + m_grpDegree);		System.out.println("   Betweenness:");		for(v = 0; v < _graph.numVertices(); v++) {			_vtx_index_tbl[v].setDatum(new Datum("Betweenness", new Double(m_betweenness[v])));			System.out.println("      [" + v + "] " + m_betweenness[v]);		}		System.out.println("   Closeness:");		for(v = 0; v < _graph.numVertices(); v++) {			_vtx_index_tbl[v].setDatum(new Datum("Closeness", new Double(m_closeness[v])));			System.out.println("      [" + v + "] " + m_closeness[v]);		}		System.out.println("   Degree:");		for(v = 0; v < _graph.numVertices(); v++) {			_vtx_index_tbl[v].setDatum(new Datum("Total Degree", new Double(m_degree[v])));			System.out.println("      [" + v + "] " + m_degree[v]);		}		System.out.println("   In-Degree:");		for(v = 0; v < _graph.numVertices(); v++) {			_vtx_index_tbl[v].setDatum(new Datum("In-Degree", new Double(m_indegree[v])));			System.out.println("      [" + v + "] " + m_indegree[v]);		}		System.out.println("   Out-Degree:");		for(v = 0; v < _graph.numVertices(); v++) {			_vtx_index_tbl[v].setDatum(new Datum("Out-Degree", new Double(m_outdegree[v])));			System.out.println("      [" + v + "] " + m_outdegree[v]);		}	}