aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/Edge.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/Edge.hpp')
-rw-r--r--src/engine/Edge.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/Edge.hpp b/src/engine/Edge.hpp
index 90511ca..db91ca7 100644
--- a/src/engine/Edge.hpp
+++ b/src/engine/Edge.hpp
@@ -35,8 +35,8 @@ class Edge
: public Stateful
{
public:
- Edge(WPtr<Node> tail, SPtr<Node> head)
- : _probability(1.0f)
+ Edge(WPtr<Node> tail, SPtr<Node> head, float probability=1.0f)
+ : _probability(probability)
, _tail(tail)
, _head(head)
{}