Package org.graphstream.stream.gephi

Examples of org.graphstream.stream.gephi.JSONSender


  // ----- On the sender side -----
  new Thread() {
      public void run() {
    // build a sender that sends events(layout information) to Gephi
    JSONSender sender = new JSONSender("localhost", 8080,
      "workspace0");
    // sender.setDebug(true);
    layout.addSink(sender);
      }
  }.start();
View Full Code Here


  new Thread() {
      public void run() {
    // - the original graph from which events are generated
    Graph g = new MultiGraph("G");
    // - the sender
    JSONSender sender = new JSONSender("localhost", 8080,
      "workspace0");
    // - plug the graph to the sender so that graph events can be
    // sent automatically
    g.addSink(sender);
    // - generate some events on the client side
View Full Code Here

    public static void main(String args[]) {
  Graph graph = new MultiGraph("Tutorial 1 GraphSender");

  graph.display();

  JSONSender sender = new JSONSender("localhost", 8080, "workspace0");

  // plug the graph to the sender so that graph events can be
  // sent automatically
  graph.addSink(sender);
View Full Code Here

  new Thread() {

      public void run() {

    Graph g = new MultiGraph("workspace0", false, true);
    JSONSender sender = new JSONSender("localhost", 8080,
      "workspace0");

    sender.setDebug(true);

    g.addSink(sender);

    g.addAttribute("attribute", "foo");
    g.changeAttribute("attribute", false);
View Full Code Here

      @Override
      public void run() {

    Graph g = new MultiGraph(workspace + prefix);

    JSONSender sender = new JSONSender(host, port, workspace);

    g.addSink(sender);

    g.addAttribute("id", workspace);
View Full Code Here

      @Override
      public void run() {
    Graph g = new MultiGraph("workspace0", false, true);

    JSONSender sender = new JSONSender("localhost", 8080,
      "workspace0");

    g.addSink(sender);

    Node node0 = g.addNode("node0");
View Full Code Here

  Graph graph = new SingleGraph("Tutorial 1");

  Viewer viewer = graph.display();

  JSONSender sender = new JSONSender("localhost", 8080, "workspace0");
  sender.setDebug(true);
  graph.addSink(sender);

  graph.addNode("A");
  graph.addNode("B");
  graph.addNode("C");
View Full Code Here

TOP

Related Classes of org.graphstream.stream.gephi.JSONSender

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.