Edge headEdge = dependent.getHeadEdge();
final LabelSet labels = checkOutNewLabelSet();
for (SymbolTable table : headEdge.getLabelTypes()) {
labels.put(table, headEdge.getLabelCode(table));
}
headEdge.clear();
headEdge.setBelongsToGraph(this);
headEdge.setEdge((Node)newHead, (Node)dependent, Edge.DEPENDENCY_EDGE);
headEdge.addLabel(labels);
labels.clear();
checkInLabelSet(labels);