public void removeEdge(Edge edge) { List sourceEdges = (List)startNodesList.get(edge.getStartNode()); List targetEdges = (List)targetNodesList.get(edge.getTargetNode()); sourceEdges.remove(edge); listeners.firePropertyChange(ID_SOURCE_CHANGED, null, edge); targetEdges.remove(edge); listeners.firePropertyChange(ID_TARGET_CHANGED, null, edge);
public void removeEdge(INode startNode, INode targetNode, String type){ if (this.startNodesList.containsKey(startNode)){ List edges = (List) startNodesList.get(startNode); for (ListIterator ite = edges.listIterator(); ite.hasNext();){ Edge edge = (Edge) ite.next(); if(edge.getTargetNode().equals(targetNode) && edge.getType().equals(type)){ ite.remove(); } }  edges = (List) targetNodesList.get(targetNode); for (ListIterator ite = edges.listIterator(); ite.hasNext();){ Edge edge = (Edge) ite.next(); if(edge.getStartNode().equals(startNode) && edge.getType().equals(type)){ ite.remove(); } } }
    public void removeEdge(Edge edge) {        List sourceEdges = (List)startNodesList.get(edge.getStartNode());        List targetEdges = (List)targetNodesList.get(edge.getTargetNode());        sourceEdges.remove(edge);        listeners.firePropertyChange(ID_SOURCE_CHANGED, null, edge);        targetEdges.remove(edge);        listeners.firePropertyChange(ID_TARGET_CHANGED, null, edge);    }