Examples of writeGraph()


Examples of net.wigis.graph.dnv.DNVGraph.writeGraph()

  public static void main( String args[] )
  {
    GraphsPathFilter.init();
    DNVGraph graph = new DNVGraph( Settings.GRAPHS_PATH + "_UCI_venezuela.dnv" );
    new MDSLayout().runLayout( graph, 0, true );
    graph.writeGraph( Settings.GRAPHS_PATH + "_UCI_venezuela_MDS.dnv" );
  }

  public static final String LABEL = "MDS Layout";
 
  @Override
View Full Code Here

Examples of net.wigis.graph.dnv.DNVGraph.writeGraph()

   
    new FruchtermanReingold().runLayout( 100, 100, graph, 0.01f, 0, false, false );

    System.out.println( "Graph has " + graph.getGraphSize( 0 ) + " nodes and " + graph.getEdgeMap( 0 ).size() + " edges." );

    graph.writeGraph( Settings.GRAPHS_PATH + "PADA/" + nodesFile + ".dnv" );
  }

  /**
   * @param string
   * @return
 
View Full Code Here

Examples of net.wigis.graph.dnv.DNVGraph.writeGraph()

    DNVGraph graph = new DNVGraph( filename );

    runLayout( graph );

    graph.writeGraph( filename.substring( 0, filename.length() - 4 ) + "_laid_out.dnv" );

    System.out.println( "Done with layout for " + filename );
  }

  /**
 
View Full Code Here

Examples of net.wigis.graph.dnv.DNVGraph.writeGraph()

   *            the arguments
   */
  public static void main( String args[] )
  {
    DNVGraph graph = generateGraph( "uk", true );
    graph.writeGraph( "C:\\BLACKBOOK\\bball\\SOA\\3.dnv" );
  }
}
View Full Code Here

Examples of net.wigis.graph.dnv.DNVGraph.writeGraph()

    // String bztestdata = "C:\\Users\\jod\\Desktop\\ben-facebook-data\\" +
    // FILENAME + ".txt";
    String bstestdata = "C:\\Users\\jod\\Desktop\\coverage-graphiris.data.tup";
    DNVGraph g = SimpleEdgeTuplesToDNVGraph.read( bstestdata, " " );
    // note- just for testing. writing is usually done elsewhere
    g.writeGraph( "C:\\graphs\\BSMYTH-" + FILENAME + ".dnv" );
    System.out.println( "...done.   check DNV file." );
  }

  /**
   * Read.
 
View Full Code Here

Examples of net.wigis.graph.dnv.DNVGraph.writeGraph()

    String inputFile = Settings.GRAPHS_PATH + "userReverts.txt";

    DNVGraph graph = createGraph( inputFile );

    graph.writeGraph( inputFile + ".dnv" );
  }

  /**
   * Creates the graph.
   *
 
View Full Code Here

Examples of net.wigis.graph.dnv.DNVGraph.writeGraph()

            + timer.getLastSegment( Timer.SECONDS ) + " seconds." );
        timer.setStart();
      }
    }

    graph.writeGraph( fileName );

    return fileName;
  }

  /**
 
View Full Code Here

Examples of net.wigis.graph.dnv.DNVGraph.writeGraph()

          }
        }
      }
    }

    graph.writeGraph( Settings.GRAPHS_PATH + "WS_" + numberOfNodes + "_" + graph.getEdges( 0 ).size() + "_" + rewireProbability + ".dnv" );
  }

  // add node
  /**
   * Adds the node.
View Full Code Here

Examples of net.wigis.graph.dnv.DNVGraph.writeGraph()

      DNVEdge pedge = new DNVEdge(compressedGraph);
      pedge.setFrom(p1);
      pedge.setTo(p2);
      compressedGraph.addEdge(0, pedge);
    }
    compressedGraph.writeGraph(Settings.GRAPHS_PATH + "fb1000_level1.dnv");
    System.out.println("this level contains " + compressedGraph.getGraphSize(0) + " nodes " + compressedGraph.getEdges(0).size() + " edges");
  }
  public static void main(String[] args){
    GraphsPathFilter.init();
    DNVGraph graph = new DNVGraph( Settings.GRAPHS_PATH + "fb1000.dnv" );
View Full Code Here

Examples of net.wigis.graph.dnv.DNVGraph.writeGraph()

     
      graph.setProperty("minTime", minTime);
      graph.setProperty("maxTime", maxTime);
     
      System.out.println("minTime  " + minTime + "  maxTime  " + maxTime);
      graph.writeGraph("/Users/scarlettteng/dev/graphs/" + "terrorism.dnv");
  }
}
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.