Galois::Graph::FileGraphWriter Class Reference
Simplifies writing graphs.
More...
#include <FileGraph.h>
List of all members.
Detailed Description
Simplifies writing graphs.
Writer your file in rounds:
-
setNumNodes(), setNumEdges(), setSizeofEdgeData()
-
phase1(), for each node, incrementDegree(Node x)
-
phase2(), add neighbors for each node, addNeighbor(Node src, Node dst)
-
finish(), use as FileGraph
Constructor & Destructor Documentation
Galois::Graph::FileGraphWriter::FileGraphWriter |
( |
|
) |
[inline] |
Galois::Graph::FileGraphWriter::~FileGraphWriter |
( |
|
) |
[inline] |
Member Function Documentation
size_t Galois::Graph::FileGraphWriter::addNeighbor |
( |
size_t |
src, |
|
|
size_t |
dst | |
|
) |
| | [inline] |
Adds a neighbor between src and dst.
template<typename T >
T* Galois::Graph::FileGraphWriter::finish |
( |
|
) |
[inline] |
Finish making graph.
Returns pointer to block of memory that should be used to store edge data.
void Galois::Graph::FileGraphWriter::incrementDegree |
( |
size_t |
id, |
|
|
int |
delta = 1 | |
|
) |
| | [inline] |
Increments degree of id by delta.
void Galois::Graph::FileGraphWriter::phase1 |
( |
|
) |
[inline] |
Marks the transition to next phase of parsing, counting the degree of nodes.
void Galois::Graph::FileGraphWriter::phase2 |
( |
|
) |
[inline] |
Marks the transition to next phase of parsing, adding edges.
void Galois::Graph::FileGraphWriter::setNumEdges |
( |
uint64_t |
n |
) |
[inline] |
void Galois::Graph::FileGraphWriter::setNumNodes |
( |
uint64_t |
n |
) |
[inline] |
void Galois::Graph::FileGraphWriter::setSizeofEdgeData |
( |
size_t |
n |
) |
[inline] |
Member Data Documentation
The documentation for this class was generated from the following file: