Package org.graphstream.stream

Examples of org.graphstream.stream.GraphReplay


   * @param graphs
   *            all graphs that will be merged in result.
   */
  public static void mergeIn(Graph result, Graph... graphs) {
    boolean strict = result.isStrict();
    GraphReplay replay = new GraphReplay(String.format("replay-%x",
        System.nanoTime()));

    replay.addSink(result);
    result.setStrict(false);

    if (graphs != null)
      for (Graph g : graphs)
        replay.replay(g);

    replay.removeSink(result);
    result.setStrict(strict);
  }
View Full Code Here


   */
  public synchronized void writeAll(Graph g, String filename)
      throws IOException {
    clearGG();

    GraphReplay replay = new GraphReplay(String.format(
        "file_sink_image-write_all-replay-%x", System.nanoTime()));

    replay.addSink(gg);
    replay.replay(g);
    replay.removeSink(gg);

    outputNewImage(filename);

    clearGG();
  }
View Full Code Here

  }

  protected void export(Context ctx, Graph g) throws IOException {
    ctx.gexf.disable(GEXF.Extension.DYNAMICS);

    GraphReplay replay = new GraphReplay("replay");
    replay.addSink(ctx.gexf);
    replay.replay(g);

    try {
      ctx.gexf.export(ctx.stream);
      ctx.stream.close();
View Full Code Here

    if (!layout)
      return;

    SpringBox sbox = new SpringBox();

    GraphReplay replay = new GraphReplay("replay");
    replay.addSink(sbox);
    sbox.addAttributeSink(buffer);

    replay.replay(buffer);

    do
      sbox.compute();
    while (sbox.getStabilization() < 0.9);
View Full Code Here

TOP

Related Classes of org.graphstream.stream.GraphReplay

Copyright © 2018 www.massapicom. 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.