Java Code Examples for org.apache.flink.test.testdata.PageRankData#RANKS_AFTER_EPSILON_0_0001_CONVERGENCE

The following examples show how to use org.apache.flink.test.testdata.PageRankData#RANKS_AFTER_EPSILON_0_0001_CONVERGENCE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PageRankITCase.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@Test
public void testPageRankWithConvergenceCriterion() throws Exception {
	PageRank.main(new String[]{
			"--pages", verticesPath,
			"--links", edgesPath,
			"--output", resultPath,
			"--numPages", PageRankData.NUM_VERTICES + "",
			"--vertices", "1000"});
	expected = PageRankData.RANKS_AFTER_EPSILON_0_0001_CONVERGENCE;
}
 
Example 2
Source File: PageRankITCase.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
@Test
public void testPageRankWithConvergence() throws Exception {
	// start with a very high number of iteration such that the dynamic convergence criterion must handle termination
	PageRankBasic.main(new String[] {
			"--pages", verticesPath,
			"--links", edgesPath,
			"--output", resultPath,
			"--numPages", PageRankData.NUM_VERTICES + "",
			"--iterations", "1000"});
	expected = PageRankData.RANKS_AFTER_EPSILON_0_0001_CONVERGENCE;
}
 
Example 3
Source File: PageRankITCase.java    From flink with Apache License 2.0 5 votes vote down vote up
@Test
public void testPageRankWithConvergenceCriterion() throws Exception {
	PageRank.main(new String[]{
			"--pages", verticesPath,
			"--links", edgesPath,
			"--output", resultPath,
			"--numPages", PageRankData.NUM_VERTICES + "",
			"--vertices", "1000"});
	expected = PageRankData.RANKS_AFTER_EPSILON_0_0001_CONVERGENCE;
}
 
Example 4
Source File: PageRankITCase.java    From flink with Apache License 2.0 5 votes vote down vote up
@Test
public void testPageRankWithConvergence() throws Exception {
	// start with a very high number of iteration such that the dynamic convergence criterion must handle termination
	PageRankBasic.main(new String[] {
			"--pages", verticesPath,
			"--links", edgesPath,
			"--output", resultPath,
			"--numPages", PageRankData.NUM_VERTICES + "",
			"--iterations", "1000"});
	expected = PageRankData.RANKS_AFTER_EPSILON_0_0001_CONVERGENCE;
}
 
Example 5
Source File: PageRankITCase.java    From flink with Apache License 2.0 5 votes vote down vote up
@Test
public void testPageRankWithConvergenceCriterion() throws Exception {
	PageRank.main(new String[]{
			"--pages", verticesPath,
			"--links", edgesPath,
			"--output", resultPath,
			"--numPages", PageRankData.NUM_VERTICES + "",
			"--vertices", "1000"});
	expected = PageRankData.RANKS_AFTER_EPSILON_0_0001_CONVERGENCE;
}
 
Example 6
Source File: PageRankITCase.java    From flink with Apache License 2.0 5 votes vote down vote up
@Test
public void testPageRankWithConvergence() throws Exception {
	// start with a very high number of iteration such that the dynamic convergence criterion must handle termination
	PageRankBasic.main(new String[] {
			"--pages", verticesPath,
			"--links", edgesPath,
			"--output", resultPath,
			"--numPages", PageRankData.NUM_VERTICES + "",
			"--iterations", "1000"});
	expected = PageRankData.RANKS_AFTER_EPSILON_0_0001_CONVERGENCE;
}