class TopologyDag implements Serializable {

    public void removeEdge(OutputComponent from, InputComponent to) {
        ensureValid(from, to);
        Iterator<Edge> it = dag.get(from).iterator();
        while (it.hasNext()) {
            if (it.next().getTo().equals(to)) {
                it.remove();
            }
        }
    }

}