Beispiel #1
0
 void setHead(LNode n) {
   head = n;
   if (head != null) {
     head.addArc(this, (directed) ? LEdge.INCOMING : LEdge.UNDIRECTED);
   }
 }
Beispiel #2
0
 void setTail(LNode n) {
   tail = n;
   if (tail != null) {
     tail.addArc(this, (directed) ? LEdge.OUTGOING : LEdge.UNDIRECTED);
   }
 }