Examples of Edge


Examples of lt.refactory.primsAlgo.graph.Edge

      e.printStackTrace();
    }
   
    assertTrue(PrimsAlgorithm.hasCycle(graph));
   
    graph.removeEdge(new Edge(nodeA,nodeB));
   
    assertFalse(PrimsAlgorithm.hasCycle(graph));   
  }
View Full Code Here

Examples of net.sf.graphiti.model.Edge

              + sourceId + "\" -> \"" + targetId
              + "\", the target vertex \"" + targetId
              + "\" could not be found.");
        }

        Edge edge = new Edge(type, source, target);
        parseParameters(edge, type, child.getFirstChild());
        graph.addEdge(edge);
      }

      child = child.getNextSibling();
View Full Code Here

Examples of net.sf.pipet.gui.graph.Edge

      String datatype = null;
      if (source != null)
        datatype = origin.getOutputPipeTypes().get(source.getPort());

      if (datatype != null && source != null && dest != null)
        return new Edge(datatype, source, dest);
    }
    catch (ResourceException e)
    {
      e.printStackTrace();
    }
View Full Code Here

Examples of net.sourceforge.jpowergraph.Edge

            }
        }
        if (edges != null) {
            Iterator iterator = edges.iterator();
            while (iterator.hasNext()) {
                Edge edge = (Edge) iterator.next();
                if (!m_edges.contains(edge)) {
                    m_edges.add(edge);
                    ((DefaultNode) edge.getFrom()).notifyEdgeAdded(edge);
                    ((DefaultNode) edge.getTo()).notifyEdgeAdded(edge);
                }
            }
        }
        fireElementsAdded(nodes, edges);
    }
View Full Code Here

Examples of nz.ac.waikato.jdsl.graph.api.Edge

    Assert.assertEquals("2", s2.element());
    // we must iterate through the edges, because graph.aConnectingEdge
    // does not respect the direction of the edge!
    EdgeIterator iter = graph.edges();
    while (iter.hasNext()) {
      Edge e = iter.nextEdge();
      if (graph.origin(e) == s2 && graph.destination(e) == s0)
        Assert.assertEquals("action0", e.element());
      else if (graph.origin(e) == s2 && graph.destination(e) == s1)
        Assert.assertEquals("action1", e.element());
      else if (graph.origin(e) == s0 && graph.destination(e) == s2)
        Assert.assertEquals("action2", e.element());
      else
        Assert.assertEquals("actionNone", e.element());
    }
  }
View Full Code Here

Examples of org._3pq.jgrapht.Edge

       * add edge from parent to child. This directed edge represents the visibility accessability inheritance direction.
       */
      INode parent = tmp.getParent();
      if(parent!=null) {
        dg.addVertex(parent.getIdent());
        Edge toParent = def.createEdge( parent.getIdent(),key);
        dg.addEdge(toParent);
      }
    }
View Full Code Here

Examples of org.aisearch.data.Edge

      if (nextOperation.equals(operation))
        continue;
      if (!nextOperation.getSourceType().equals(targetType))
        continue;
      INode node = new Node(nextOperation, availableOperations);
      edges.add(new Edge(node, 1));
    }
    return edges;
  }
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.Edge

            }

            this.draggedPort = port;

        } else if (selected instanceof Edge) {
            Edge edge = (Edge) selected;
            selectEdge(edge);
        } else {
            /*
             * If nothing is selected
             */
 
View Full Code Here

Examples of org.apache.airavata.workflow.model.graph.Edge

     * @param toPort
     */
    private void connect(Port fromPort, Port toPort) {
        try {
            // check the validity of the connection.
            Edge edge = this.graph.addEdge(fromPort, toPort);
            selectEdge(edge);
        } catch (GraphException e) {
            logger.error(e.getMessage(), e);
            this.engine.getGUI().getErrorWindow().warning(e.getMessage());
        } catch (RuntimeException e) {
View Full Code Here

Examples of org.apache.airavata.xbaya.graph.Edge

                setDefaultValue(null);
                setMetadata(null);
            }

        } else {
            Edge edge = edges.get(0);
            Port toPort = edge.getToPort();
            WSPort toWsPort = (WSPort) toPort;
            QName toType = toWsPort.getType();
            setParameterType(toType);

            if (!isConfigured()) {
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.