public void dispose(){
  Object[] inNodesArray=inNodes.toArray();
  for (int i=0; i < inNodesArray.length; i++) {
    DigraphNode node=(DigraphNode)inNodesArray[i];
    node.removeEdge(this);
  }
  Object[] outNodesArray=outNodes.toArray();
  for (int i=0; i < outNodesArray.length; i++) {
    DigraphNode node=(DigraphNode)outNodesArray[i];
    removeEdge(node);
  }
}

public void dispose ( ) { Object [ ] inNodesArray = inNodes . toArray ( ) ; for ( int i = 0 ; i < inNodesArray . length ; i ++ ) { DigraphNode node = ( DigraphNode ) inNodesArray [ i ] ; node . removeEdge ( this ) ; } Object [ ] outNodesArray = outNodes . toArray ( ) ; for ( int i = 0 ; i < outNodesArray . length ; i ++ ) { DigraphNode node = ( DigraphNode ) outNodesArray [ i ] ; removeEdge ( node ) ; } }
removes this node from the graph , updating neighboring nodes appropriately .
