Package org.apache.flink.test.testdata
Class ConnectedComponentsData
- java.lang.Object
-
- org.apache.flink.test.testdata.ConnectedComponentsData
-
public class ConnectedComponentsData extends Object
Test data for ConnectedComponents programs.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
checkOddEvenResult(BufferedReader result)
static void
checkOddEvenResult(List<Tuple2<Long,Long>> lines)
static String
getEnumeratingVertices(int num)
static String
getRandomOddEvenEdges(int numEdges, int numVertices, long seed)
Creates random edges such that even numbered vertices are connected with even numbered vertices and odd numbered vertices only with other odd numbered ones.
-
-
-
Method Detail
-
getEnumeratingVertices
public static final String getEnumeratingVertices(int num)
-
getRandomOddEvenEdges
public static final String getRandomOddEvenEdges(int numEdges, int numVertices, long seed)
Creates random edges such that even numbered vertices are connected with even numbered vertices and odd numbered vertices only with other odd numbered ones.
-
checkOddEvenResult
public static void checkOddEvenResult(BufferedReader result) throws IOException
- Throws:
IOException
-
checkOddEvenResult
public static void checkOddEvenResult(List<Tuple2<Long,Long>> lines) throws IOException
- Throws:
IOException
-
-