summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeComponentGraph.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-08-20 18:11:18 (GMT)
committerBrad King <brad.king@kitware.com>2010-08-25 21:10:00 (GMT)
commit7be2617b5a52529ce0ca33e6c878a0294e1e2781 (patch)
tree9f6246316213f16ecd20d05b812965b51a29d30b /Source/cmComputeComponentGraph.h
parent95b3bb5dbcb6021f07329f5bc400b1a205386970 (diff)
downloadCMake-7be2617b5a52529ce0ca33e6c878a0294e1e2781.zip
CMake-7be2617b5a52529ce0ca33e6c878a0294e1e2781.tar.gz
CMake-7be2617b5a52529ce0ca33e6c878a0294e1e2781.tar.bz2
Split notion of node lists and edge lists
Diffstat (limited to 'Source/cmComputeComponentGraph.h')
-rw-r--r--Source/cmComputeComponentGraph.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmComputeComponentGraph.h b/Source/cmComputeComponentGraph.h
index 855a141..a2ce946 100644
--- a/Source/cmComputeComponentGraph.h
+++ b/Source/cmComputeComponentGraph.h
@@ -33,6 +33,7 @@ class cmComputeComponentGraph
public:
// Represent the graph with an adjacency list.
typedef cmGraphNodeList NodeList;
+ typedef cmGraphEdgeList EdgeList;
typedef cmGraphAdjacencyList Graph;
cmComputeComponentGraph(Graph const& input);
@@ -41,7 +42,7 @@ public:
/** Get the adjacency list of the component graph. */
Graph const& GetComponentGraph() const
{ return this->ComponentGraph; }
- NodeList const& GetComponentGraphEdges(int c) const
+ EdgeList const& GetComponentGraphEdges(int c) const
{ return this->ComponentGraph[c]; }
/** Get map from component index to original node indices. */