added a :likelihood parameter to edges, to simulate probabilistic behaviour