@Test
public void considersMissingEdges() {

    TestAUGBuilder targetBuilder = buildAUG().withActionNodes("a", "b");
    TestAUGBuilder patternBuilder = extend(targetBuilder).withEdge("a", ORDER, "b");
    Overlap violation = buildOverlap(patternBuilder, targetBuilder).withNode("a", "a").build();
    ViolationWeightFunction weightFunction = new OverlapWeightFunction();
    double weight = weightFunction.getWeight(violation, null, null);
    assertThat(weight, is(closeTo(1/3.0, 0.00001)));
}