protected float[] calcRowBC(final int lindex,final int levels[][]){
  float rowBC[]=new float[levels[lindex].length];
  GraphNode n;
  for (int i=0; i < levels[lindex].length; i++) {
    int sum=0;
    n=m_nodes.get(levels[lindex][i]);
    for (    int[] edge : n.edges) {
      if (edge[1] > 0) {
        sum++;
        try {
          rowBC[i]=rowBC[i] + indexOfElementInLevel(edge[0],levels[lindex + 1]) + 1;
        }
 catch (        Exception ex) {
          return null;
        }
      }
    }
    if (rowBC[i] != 0) {
      rowBC[i]=rowBC[i] / sum;
    }
  }
  return rowBC;
}

protected float [ ] calcRowBC ( final int lindex , final int levels [ ] [ ] ) { float rowBC [ ] = new float [ levels [ lindex ] . length ] ; GraphNode n ; for ( int i = 0 ; i < levels [ lindex ] . length ; i ++ ) { int sum = 0 ; n = m_nodes . get ( levels [ lindex ] [ i ] ) ; for ( int [ ] edge : n . edges ) { if ( edge [ 1 ] > 0 ) { sum ++ ; try { rowBC [ i ] = rowBC [ i ] + indexOfElementInLevel ( edge [ 0 ] , levels [ lindex + 1 ] ) + 1 ; } catch ( Exception ex ) { return null ; } } } if ( rowBC [ i ] != 0 ) { rowBC [ i ] = rowBC [ i ] / sum ; } } return rowBC ; }
see sugiyama et al . 1981 ( full reference give at top )
