public int end(){
  return nodes.get(0).j;
}

public int end ( ) { return nodes . get ( 0 ) . j ; }
all nodes in a supernode have the same start and end points , so we pick the first one and return it .
