Graphulo-Pig has three different ways to write to Graphulo, depending on the kind of internal representation required. It currently supports three different formats:
- Adjacency
- Incidence (Edge)
- Single-Table
Additional information on the differences between the representations can be found in Graphulo's documentation.
At the current time, Graphulo only accepts files of the following formats:
vertexFrom,vertexTo,value
Value is an optional field. If it's not included, Graphulo will default to a value of 1.
TODO: Verify it can read from edge files. Or put it on the future features list.
There is sample code for reading a file containing an adjacency graph:
There will be sample code for reading a file containing an edge graph