faultCode0faultStringWarning:include_once(analyticstracking.php): failed to open stream: No such file or directory in /data/htdocs-users/hogie/public_html/software/index.php on line 7faultCode0faultStringWarning:include_once(): Failed opening 'analyticstracking.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php') in /data/htdocs-users/hogie/public_html/software/index.php on line 7 BigGrph - High Performance Graph Librairy for Java
Biggrph
Scientific distributed graph computing made easy
Home › Code samples

There is the Javadoc.

Booking 1 core on 4 nodes for 1 hour on the dellc6220 rack of the NEF cluster: ResourceManager rm = new Nef(); NodeNameSet nodes = rm.bookNodes(4, 1, 3600, "dellc6220");

Start BigGrph on 4 nodes (booking 2 cores per node during 1 hour) on the dellc6220 rack of a cluster whose the frontal is nef-frontal: BigGrphCluster cluster = BigGrphCluster.torque("jdoe", "nef-frontal", 4, 2, 3600, "dellc6220");

Loading (a subset of) the Twitter graph (): EdgeListDataSet dataset = new EdgeListDataSet("twitter-small.tsv", cluster); BigAdjacencyTable g = dataset.load(false, true);

Computing the average degree of the Twitter graph: long avgDegree = g.getAverageDegree();

Computing the diameter of the Twitter graph, using the iFUB algorithm, setting the src vertex using a 2-sweep search: long diameter = g.getDiameter_iFUB();

Computing distance distribution from vertex 45: BFSDistanceAssigner bfsResult = g.bfs(45); DistributionForLongs d = new DistanceDistribution(bfsResult.getDistancesMap());