cyclegraph: don't export CycleNode::edges directly, use accessors
[model-checker.git] / cyclegraph.h
index f0f04ffee0c3ca1f9cd3ef2edf46c2743e6c0515..829c845f75b1a34019922c02640e092ee88ae004 100644 (file)
@@ -63,7 +63,8 @@ class CycleNode {
  public:
        CycleNode(const ModelAction *action);
        bool addEdge(CycleNode * node);
-       std::vector<CycleNode *> * getEdges();
+       CycleNode * getEdge(unsigned int i) const;
+       unsigned int getNumEdges() const;
        bool setRMW(CycleNode *);
        CycleNode* getRMW();
        const ModelAction * getAction() {return action;};