* @param jythonJob the job info
* @param interpreter PythonInterpreter to use
*/
private static void initGraphTypes(Configuration conf,
JythonJob jythonJob, PythonInterpreter interpreter) {
GiraphTypes types = new GiraphTypes();
types.setVertexIdClass(initValueType(conf, GraphType.VERTEX_ID,
jythonJob.getVertex_id().getType(), new JythonVertexIdFactory(),
interpreter));
types.setVertexValueClass(initValueType(conf, GraphType.VERTEX_VALUE,
jythonJob.getVertex_value().getType(), new JythonVertexValueFactory(),
interpreter));
types.setEdgeValueClass(initValueType(conf, GraphType.EDGE_VALUE,
jythonJob.getEdge_value().getType(), new JythonEdgeValueFactory(),
interpreter));
types.setIncomingMessageValueClass(
initValueType(conf, GraphType.INCOMING_MESSAGE_VALUE,
jythonJob.getIncoming_message_value().getType(),
new JythonIncomingMessageValueFactory(), interpreter));
types.setOutgoingMessageValueClass(
initValueType(conf, GraphType.OUTGOING_MESSAGE_VALUE,
jythonJob.getOutgoing_message_value().getType(),
new JythonOutgoingMessageValueFactory(), interpreter));
types.writeTo(conf);
}