Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
The current vertex API only supports simple graphs, meaning that there can only ever be one edge between two vertices. Many graphs like the road network are in fact multigraphs, where many edges can connect two vertices at the same time.
Support for this could be added by introducing an Iterator<EdgeWritable> getEdgeValue() or a similar construct. Maybe introducing a slim object like a Connector between the edge and the vertex is also a good idea, so that you could do something like:
for (final Connector<EdgeWritable, VertexWritable> conn: getEdgeValues(){ final EdgeWritable edge = conn.getEdge(); final VertexWritable otherVertex = conn.getOther(); doInterestingStuff(otherVertex); doMoreInterestingStuff(edge); }
Attachments
Attachments
Issue Links
- is related to
-
GIRAPH-170 Workflow for loading RDF graph data into Giraph
- Resolved
- relates to
-
GIRAPH-155 Allow creation of graph by adding edges that span multiple workers
- Resolved