Package edu.uci.ics.jung.graph.impl

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


                            {
                              Configuration config = Configuration.getDefaultConfiguration().copy();
                              LearnerGraphND machine = new LearnerGraphND(config);Synapse.StatechumProcess.parseStatemachine(message.elementAt(2),machine,null,true);
                              DirectedSparseGraph fsmPicture = machine.pathroutines.getGraph();
                              if (!fsmPicture.containsUserDatumKey(JUConstants.LAYOUTOPTIONS))
                                fsmPicture.addUserDatum(JUConstants.LAYOUTOPTIONS,new LayoutOptions(), UserData.SHARED);
                              int windowNumber = setOptions(message,3,fsmPicture);
                              if (windowNumber >= 0)
                                Visualiser.updateFrameWithPos(fsmPicture,windowNumber);

                              outcome = new OtpErlangTuple(new OtpErlangObject[]{ref,msgOk});
View Full Code Here


    Map<String,String> labelling = new TreeMap<String,String>();
    for(Entry<VertID,VertID> entry:oldVerticesToNew.entrySet())
      labelling.put(entry.getKey().toString(),entry.getValue().toString());
    DirectedSparseGraph gr = outcome.pathroutines.getGraph();
   
    gr.addUserDatum(JUConstants.VERTEX, labelling, UserData.SHARED);
    gr.addUserDatum(JUConstants.EDGE, transitionAnnotation, UserData.SHARED);
    return gr;
  }
 
View Full Code Here

    for(Entry<VertID,VertID> entry:oldVerticesToNew.entrySet())
      labelling.put(entry.getKey().toString(),entry.getValue().toString());
    DirectedSparseGraph gr = outcome.pathroutines.getGraph();
   
    gr.addUserDatum(JUConstants.VERTEX, labelling, UserData.SHARED);
    gr.addUserDatum(JUConstants.EDGE, transitionAnnotation, UserData.SHARED);
    return gr;
  }
 
View Full Code Here

    Map<String,String> labelling = new TreeMap<String,String>();
    for(Entry<VertID,VertID> entry:oldVerticesToNew.entrySet())
      labelling.put(entry.getKey().toString(),entry.getValue().toString());
    DirectedSparseGraph gr = outcome.pathroutines.getGraph();
   
    gr.addUserDatum(JUConstants.VERTEX, labelling, UserData.SHARED);
    gr.addUserDatum(JUConstants.EDGE, transitionAnnotation, UserData.SHARED);
    return gr;
  }
 
View Full Code Here

    for(Entry<VertID,VertID> entry:oldVerticesToNew.entrySet())
      labelling.put(entry.getKey().toString(),entry.getValue().toString());
    DirectedSparseGraph gr = outcome.pathroutines.getGraph();
   
    gr.addUserDatum(JUConstants.VERTEX, labelling, UserData.SHARED);
    gr.addUserDatum(JUConstants.EDGE, transitionAnnotation, UserData.SHARED);
    return gr;
  }
 
View Full Code Here

      CmpVertex R = oldVerticesToNew.get(newBToOrig.get(pair.getR()).getID());
      labelling.put(Q.getID().toString(),R.getID().toString()+ " (K) "+pair.getScore()+","+pair.getAnotherScore());
    }
    DirectedSparseGraph gr = outcome.pathroutines.getGraph();
   
    gr.addUserDatum(JUConstants.VERTEX, labelling, UserData.CLONE);
    gr.addUserDatum(JUConstants.EDGE, transitionAnnotation, UserData.CLONE);
    return gr;
  }
 
View Full Code Here

      labelling.put(Q.getID().toString(),R.getID().toString()+ " (K) "+pair.getScore()+","+pair.getAnotherScore());
    }
    DirectedSparseGraph gr = outcome.pathroutines.getGraph();
   
    gr.addUserDatum(JUConstants.VERTEX, labelling, UserData.CLONE);
    gr.addUserDatum(JUConstants.EDGE, transitionAnnotation, UserData.CLONE);
    return gr;
  }
 
View Full Code Here

      public void pairCompatibility(String stateA, PAIRCOMPATIBILITY pairRelation, String stateB) {
        PairCompatibility<Vertex> pairCompatibility = (PairCompatibility<Vertex>)g.getUserDatum(JUConstants.PAIR_COMPATIBILITY);
        if (pairCompatibility == null)
        {
          pairCompatibility = new PairCompatibility<Vertex>();
          g.addUserDatum(JUConstants.PAIR_COMPATIBILITY, pairCompatibility, UserData.SHARED);
        }
        if (!existingVertices.containsKey(stateA))
          throw new IllegalArgumentException("unknown vertex "+stateA);
        if (!existingVertices.containsKey(stateB))
          throw new IllegalArgumentException("unknown vertex "+stateB);
View Full Code Here

                        v.addUserDatum(JUConstants.COVERAGE, coverage, UserData.SHARED);
                    }
                }

            }
            gr.addUserDatum(JUConstants.LAYOUTOPTIONS, layoutOptions(), UserData.SHARED);
            notifyObservers(gr);
        }
    }

    /** Determines the default options with which a graph should be displayed. */
 
View Full Code Here

                            {
                              Configuration config = Configuration.getDefaultConfiguration().copy();
                              LearnerGraphND machine = new LearnerGraphND(config);Synapse.StatechumProcess.parseStatemachine(message.elementAt(2),machine,null,true);
                              DirectedSparseGraph fsmPicture = machine.pathroutines.getGraph();
                              if (!fsmPicture.containsUserDatumKey(JUConstants.LAYOUTOPTIONS))
                                fsmPicture.addUserDatum(JUConstants.LAYOUTOPTIONS,new LayoutOptions(), UserData.SHARED);
                              int windowNumber = setOptions(message,3,fsmPicture);
                              if (windowNumber >= 0)
                                Visualiser.updateFrameWithPos(fsmPicture,windowNumber);

                              outcome = new OtpErlangTuple(new OtpErlangObject[]{ref,msgOk});
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.