Examples of removeEdge()


Examples of diva.graph.GraphController.removeEdge()

        // then removing the nodes might remove some of the edges.
        for (int i = 0; i < userObjects.length; i++) {
            Object userObject = userObjects[i];

            if (graphModel.isEdge(userObject)) {
                controller.removeEdge(userObject);
            }
        }

        for (int i = 0; i < selection.length; i++) {
            Object userObject = userObjects[i];
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.DataPort.removeEdge()

            for (Iterator<DataEdge> edgeItr = port.getEdges().iterator(); edgeItr
                    .hasNext();) {
                DataEdge edge = edgeItr.next();
                // Remove the edge from from-port.
                DataPort fromPort = edge.getFromPort();
                fromPort.removeEdge(edge);
                // remove the edge from this port. This is necessary so that
                // type update works properly.
                edgeItr.remove();

                // Remove the edge from the graph.
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.DataPort.removeEdge()

            DataPort port = portItr.next();
            for (Iterator<DataEdge> edgeItr = port.getEdges().iterator(); edgeItr
                    .hasNext();) {
                DataEdge edge = edgeItr.next();
                DataPort toPort = edge.getToPort();
                toPort.removeEdge(edge);
                edgeItr.remove();
                this.edges.remove(edge);
                toPort.getNode().edgeWasRemoved(edge);
            }
            portItr.remove();
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.DataPort.removeEdge()

            PortImpl port = portItr.next();
            for (Iterator<? extends EdgeImpl> edgeItr = port.getEdges()
                    .iterator(); edgeItr.hasNext();) {
                EdgeImpl edge = edgeItr.next();
                PortImpl toPort = edge.getToPort();
                toPort.removeEdge(edge);
                edgeItr.remove();
                this.edges.remove(edge);
                toPort.getNode().edgeWasRemoved(edge);
            }
            portItr.remove();
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.DataPort.removeEdge()

        if (eprPort != null) {
            for (Iterator<? extends EdgeImpl> edgeItr = eprPort.getEdges()
                    .iterator(); edgeItr.hasNext();) {
                EdgeImpl edge = edgeItr.next();
                PortImpl toPort = edge.getToPort();
                toPort.removeEdge(edge);
                edgeItr.remove();
                this.edges.remove(edge);
                toPort.getNode().edgeWasRemoved(edge);
            }
            this.ports.remove(eprPort);
View Full Code Here

Examples of edu.indiana.extreme.xbaya.graph.Graph.removeEdge()

      List<DataPort> outputPorts = newNode.getOutputPorts();
     
      for (int i=0; i<outputPorts.size(); ++i) {
        List<Port> toPorts = this.node.getOutputPort(i).getToPorts();
        for (Port port : toPorts) {
          graph.removeEdge(this.node.getOutputPort(i), port);
          graph.addEdge(outputPorts.get(i), port);
        }
       
      }
     
View Full Code Here

Examples of edu.uci.ics.jung.graph.impl.DirectedSparseGraph.removeEdge()

      Set<String> usedInputs = new HashSet<String>();
      for(DirectedSparseEdge e:(Set<DirectedSparseEdge>)newBlue.getInEdges())
      {
        Vertex source = e.getSource();
        Collection<String> existingLabels = (Collection<String>)e.getUserDatum(JUConstants.LABEL);
        g.removeEdge(e);

        // It is possible that there is already an edge between g.getSource Blue and newRed
        Iterator<DirectedSparseEdge> sourceOutIt = source.getOutEdges().iterator();
        Edge fromSourceToNewRed = null;
        while(sourceOutIt.hasNext() && fromSourceToNewRed == null)
View Full Code Here

Examples of edu.uci.ics.jung.graph.impl.DirectedSparseGraph.removeEdge()

      Set<String> usedInputs = new HashSet<String>();
      for(DirectedSparseEdge e:(Set<DirectedSparseEdge>)newBlue.getInEdges())
      {
        Vertex source = e.getSource();
        Collection<String> existingLabels = (Collection<String>)e.getUserDatum(JUConstants.LABEL);
        g.removeEdge(e);

        // It is possible that there is already an edge between g.getSource Blue and newRed
        Iterator<DirectedSparseEdge> sourceOutIt = source.getOutEdges().iterator();
        Edge fromSourceToNewRed = null;
        while(sourceOutIt.hasNext() && fromSourceToNewRed == null)
View Full Code Here

Examples of edu.uci.ics.jung.graph.impl.DirectedSparseGraph.removeEdge()

      Set<Label> usedInputs = new HashSet<Label>();
      for(DirectedSparseEdge e:(Set<DirectedSparseEdge>)newBlue.getInEdges())
      {
        Vertex source = e.getSource();
        Collection<Label> existingLabels = (Collection<Label>)e.getUserDatum(JUConstants.LABEL);
        g.removeEdge(e);

        // It is possible that there is already an edge between g.getSource Blue and newRed
        Iterator<DirectedSparseEdge> sourceOutIt = source.getOutEdges().iterator();
        Edge fromSourceToNewRed = null;
        while(sourceOutIt.hasNext() && fromSourceToNewRed == null)
View Full Code Here

Examples of edu.uci.ics.jung.graph.impl.DirectedSparseGraph.removeEdge()

      Set<String> usedInputs = new HashSet<String>();
      for(DirectedSparseEdge e:(Set<DirectedSparseEdge>)newBlue.getInEdges())
      {
        Vertex source = e.getSource();
        Collection<String> existingLabels = (Collection<String>)e.getUserDatum(JUConstants.LABEL);
        g.removeEdge(e);

        // It is possible that there is already an edge between g.getSource Blue and newRed
        Iterator<DirectedSparseEdge> sourceOutIt = source.getOutEdges().iterator();
        Edge fromSourceToNewRed = null;
        while(sourceOutIt.hasNext() && fromSourceToNewRed == null)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.