Package net.wigis.graph.dnv

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


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

    DNVGraph graph = createGraph( inputFile );

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

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

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

    graph.writeGraph( fileName );

    return fileName;
  }

  /**
 
View Full Code Here

          }
        }
      }
    }

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

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

      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

     
      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

    DNVGraph graph = new DNVGraph( Settings.GRAPHS_PATH + Settings.DEFAULT_GRAPH );
    System.out.println( graph.getNodes( 0 ).size() );
    cluster( graph, 0 );
    System.out.println( graph.getNodes( 0 ).size() );
    System.out.println( graph.getNodes( 1 ).size() );
    graph.writeGraph( Settings.GRAPHS_PATH + Settings.DEFAULT_GRAPH + "_clustered.dnv" );
  }
}
View Full Code Here

   *             Signals that an I/O exception has occurred.
   */
  public static void main( String args[] ) throws IOException
  {
    DNVGraph graph = convert( Settings.GRAPHS_PATH + "dep.dot" );
    graph.writeGraph( Settings.GRAPHS_PATH + "dep.dot.dnv" );
  }
}
View Full Code Here

    List<DNVNode> nodes = generateSeries( graph, 7, nodeColor, "G" );
    DNVNode node = addNode( graph, nodeColor, "G", nodes );
    addEdge( graph, "G", nodes.get( 5 ), node );
    applyPositions( gPositions, nodes );
   
    graph.writeGraph( Settings.GRAPHS_PATH + "WiGis.dnv" );
  }

  private static Vector2D wPositions[] = {
    new Vector2D( 0, 20 ),
    new Vector2D( 5, 100 ),
View Full Code Here

        }
        System.out.print( "---------------------------------------------------------------------------------------\n\n" );

        tempIndex = fileNames[i].lastIndexOf( "." );
        tempFileName = fileNames[i].substring( 0, tempIndex ) + "_interp" + fileNames[i].substring( tempIndex );
        graph.writeGraph( tempFileName );
      }

      fw.close();
    }
    catch( IOException e )
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.