]> AND Public Git Repository - simgrid.git/blobdiff - src/mc/transition/TransitionRandom.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove CompatibilityGraph and friends
[simgrid.git] / src / mc / transition / TransitionRandom.hpp
index 8c53c3b0ebc76b52a0a71332090ae82e5c2f92f1..ba00821584252c0e36943d419c4d2243180b6a2b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015-2022. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2015-2023. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -17,7 +17,7 @@ class RandomTransition : public Transition {
 public:
   std::string to_string(bool verbose) const override;
   RandomTransition(aid_t issuer, int times_considered, std::stringstream& stream);
-  bool depends(const Transition* other) const override { return false; } // Independent with any other transition
+  bool depends(const Transition* other) const override { return aid_ == other->aid_; } // Independent with any other transition
 };
 
 } // namespace simgrid::mc