protected void addLink(String field,int len,int n,int e){
  int[] array=(int[])m_links.get(n,field);
  if (array == null) {
    array=new int[]{e};
    m_links.set(n,field,array);
    return;
  }
 else   if (len == array.length) {
    int[] narray=new int[Math.max(3 * array.length / 2,len + 1)];
    System.arraycopy(array,0,narray,0,array.length);
    array=narray;
    m_links.set(n,field,array);
  }
  array[len]=e;
}

protected void addLink ( String field , int len , int n , int e ) { int [ ] array = ( int [ ] ) m_links . get ( n , field ) ; if ( array == null ) { array = new int [ ] { e } ; m_links . set ( n , field , array ) ; return ; } else if ( len == array . length ) { int [ ] narray = new int [ Math . max ( 3 * array . length / 2 , len + 1 ) ] ; System . arraycopy ( array , 0 , narray , 0 , array . length ) ; array = narray ; m_links . set ( n , field , array ) ; } array [ len ] = e ; }
internal method for adding a link to an adjacency list
