41 Graph(std::string filename);
42 Graph(
int numNodes,
int numEdges);
43 int getEdgePoint(
int i,
int j);
46 int getNodeWeight(
int node);
47 double getEdgeWeight(
int node,
int neighborInd);
48 int getNodeMatch(
int node);
49 void setNodeMatch(
int node,
int val);
50 std::vector<int> getMatchList();
51 std::vector<int> getNeighbors(
int node);
52 std::vector<double> getEdges(
int node);
53 std::vector<int> reorderGraph(std::vector<int> indMap);
54 std::vector<int> getChildren(
int node);
55 int coarsenFrom(
Graph & g, std::vector<std::vector<double> >& timeKeeper);
56 int writeEdgeList(std::string filename);
57 void sortNeighborList();
62 int numEdges, numNodes, numChildren;
63 std::vector<std::vector<int> > edge;
64 std::vector<std::vector<int> > neighborList;
65 std::vector<std::vector<double> > edgeWeights;
66 std::vector<int> nodeWeights;
67 std::vector<int> matchList;
68 std::vector<std::vector<int> > parentList;
69 std::vector<int> child2Parent;
TODO: Give description of Graph class and add comments to each function.
Definition: graph.h:37
std::vector< int > irow
Definition: graph.h:26
std::vector< int > pcol
Definition: graph.h:27
int nnz
Definition: graph.h:25
std::vector< double > vals
Definition: graph.h:28
Struct defining matrix in Compact Sparse Column (CSC) format.
Definition: graph.h:22