12345678910111213141516171819202122232425262728293031323334353637383940 |
- #ifndef cmGraphAdjacencyList_h
- #define cmGraphAdjacencyList_h
- #include "cmConfigure.h"
- #include <vector>
- class cmGraphEdge
- {
- public:
- cmGraphEdge(int n = 0, bool s = true)
- : Dest(n)
- , Strong(s)
- {
- }
- operator int() const { return this->Dest; }
- bool IsStrong() const { return this->Strong; }
- private:
- int Dest;
- bool Strong;
- };
- struct cmGraphEdgeList : public std::vector<cmGraphEdge>
- {
- };
- struct cmGraphNodeList : public std::vector<int>
- {
- };
- struct cmGraphAdjacencyList : public std::vector<cmGraphEdgeList>
- {
- };
- #endif
|