Examples of Graph


Examples of edu.stanford.hci.flowmap.structure.Graph

           }
           weight += 1;
           locationWeights.put(location, weight);
       }
      
       Graph graph = new Graph();
       Location rootLocation = locations.get(rootPath);
       if (rootLocation == null) return;
       Node rootNode = new Node(rootLocation.px, rootLocation.py, 1, rootLocation.getDocument());
       graph.addNode(rootNode);
       graph.setRootNode(rootNode);
      
       for (Location each: locationWeights.keySet()) {
           Integer weight = locationWeights.get(each);
           Node node = new Node(each.px, each.py, weight, each.getDocument());
           graph.addNode(node);
       }
       graphs.add(graph);
    }
View Full Code Here

Examples of edu.uci.ics.jung.graph.Graph

   * Save the current converter graph to the user's home directory

   */
  private void saveGraph() {
    GraphMLFile writer = new GraphMLFile();
    Graph g = (Graph) graph.copy();
    for (Iterator edges = g.getEdges().iterator(); edges.hasNext();) {
      Edge e = (Edge) edges.next();
      e.removeUserDatum(SERVICE_LIST);
    }

    writer.save(g, System.getProperty("user.home")
View Full Code Here

Examples of es.uma.ama.maudeWorkstationGUI.ui.graph.Graph

    */
    public DrawingArea(GraphGUI controller) {
        final GraphGUI gui = controller;

        // Creo un Graph
        graph = new Graph();

        // Creo los rect�ngulos vacio.
        //rectangulos = new HashMap();

        // Formato de impresi�n de p�gina por defecto
View Full Code Here

Examples of eu.admire.dispel.graph.Graph

    {
        try
        {
            // apply local transformations
            LOG.debug("Applying local transformations.");
            Graph transformed = mLocalOptimiser.optimise(graph);
           
            // now create a workflows
            mConverter.createWorkflows(transformed);
            mListener.partitions(transformed, mConverter.getWorkflows());
            List<Exchange> exchanges = mConverter.getExchanges();
View Full Code Here

Examples of gannuWSD.graphs.Graph

      {
        relevantSynsets.addAll(word.getSenses());
      }
      for(i=0;i<senses.size()&&(target.getPos().equals("N")||this.allPos);i++)
      {
        Graph g=this.graphs.loadGraph(senses.get(i), this.dict)
        g.prune(relations, depth);
        double w=0.0d;
        double m=0.0d;
        ArrayList<String> dwords=new ArrayList<String>();
        for(Sense s:relevantSynsets)
        {
          GraphNode gn=g.get(s, depth, relations);
          if(gn!=null)
          {
            dwords.add(s.getSynonyms().get(0));
            m+=1.0d;
          }              
        }
        w=Math.pow(m, 0.1)*Math.pow(m/((double)g.getNodes().size()),Math.log(((double)i)+1.0d));
        decision.setSense(i, w, dwords);
      }
      decision.calculateAnswer();
      return decision;
    }
View Full Code Here

Examples of graph.Graph

    }

    // Change the filter of ALL nodes
    synchronized void setLinkFilter (int filter) {
        defaultFilter = filter;
        Graph graph = getGraph ();
        for (int i=0; i<graph.sizeNodes; ++i) {
            WebNode n = (WebNode)graph.nodes[i];
            setLinkFilter (n, filter);
        }
    }
View Full Code Here

Examples of graphStructure.Graph

  public void update()
  {
    if ( isVisible() )
    {
      Graph g = editorWindow.getGraphEditor().getGraph();
      totalNodesLabel.setText("Total Nodes: " + g.getNumNodes());
      totalEdgesLabel.setText("Total Edges: " + g.getNumEdges());
      generatedEdgesLabel.setText("Generated Edges: " + g.getNumGeneratedEdges());
      curvedEdgesLabel.setText("Curved Edges: " + g.getNumCurvedEdges());
      boolean planar = PlanarityOperation.isPlanar(g);
      planarLabel.setText("Planar?: " + planar);
      maximalPlanarLabel.setText("Maximal Planar?: " + (planar &&
        g.getNumEdges() == g.getNumNodes() * 3 - 6));
      connectedCountLabel.setText("Num Connected Components: " +
        ConnectivityOperation.getConnectedComponents(g).size());
      biconnectedCountLabel.setText("Num Biconnected Components: " +
        BiconnectivityOperation.getBiconnectedComponents(g).size());
    }
View Full Code Here

Examples of graphmatcher.graph.Graph

  public void initListeners() {
    patternListPanel.addListSelectionListener(new ListSelectionListener() {
      public void valueChanged(ListSelectionEvent e) {
        JList list = (JList) e.getSource();
        Graph graph = (Graph) list.getSelectedValue();
        patternGraphPanel.setGraph(graph);
      }
    });

    templateListPanel.addListSelectionListener(new ListSelectionListener() {
      public void valueChanged(ListSelectionEvent e) {
        JList list = (JList) e.getSource();
        Graph graph = (Graph) list.getSelectedValue();
        templateGraphPanel.setGraph(graph);
      }
    });
  }
View Full Code Here

Examples of hudson.util.Graph

    public String getBuildStatusUrl() {
        return getIconColor().getImage();
    }

    public Graph getBuildTimeGraph() {
        return new Graph(getLastBuild().getTimestamp(),500,400) {
            @Override
            protected JFreeChart createGraph() {
                class ChartLabel implements Comparable<ChartLabel> {
                    final Run run;
View Full Code Here

Examples of info.leadinglight.jdot.Graph

    public static void main(String[] args) {
        g().viewSvg();
    }

    public static Graph g() {
        Graph g = new Graph("abstract").setSize("6,6");
        g.addEdges(new Edge("S24", "27"), new Edge("S24", "25"),
                new Edge("S1", "10"), new Edge("S1", "2"), new Edge(
                        "S35", "36"), new Edge("S35", "43"), new Edge(
                        "S30", "31"), new Edge("S30", "33"), new Edge(
                        "9", "42"), new Edge("9", "T1"), new Edge("25",
                        "T1"), new Edge("25", "26"),
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.