{
temp.set(i, j, D.get(i, j) - A.get(i, j));
}
}
Algebra algebra = new Algebra();
DoubleMatrix2D tempInverse = algebra.inverse(temp);
DoubleMatrix2D T = new SparseDoubleMatrix2D(numVertices, numVertices);
//compute "voltage" matrix
for (int i = 0; i < numVertices - 1; i++)
{
for (int j = 0; j < numVertices - 1; j++)