def METHOD_NAME(set_relation_precedence_rule_twice: bool) -> None:
    r"""
    A.one --> B.one
      |   \  /\   |
      |    \/     |
      |   / \     |
      | /    \    |
     \//      _\ \/
    A.two -->  B.two
    """
    a_one = DummyRelationAttribute(fq_attr_name="A.one")
    a_two = DummyRelationAttribute(fq_attr_name="A.two")
    b_one = DummyRelationAttribute(fq_attr_name="B.one")
    b_two = DummyRelationAttribute(fq_attr_name="B.two")
    graph = RelationPrecedenceGraph()
    for _ in range(1 + int(set_relation_precedence_rule_twice)):
        graph.add_precedence_rule(first_attribute=a_one, then_attribute=a_two)
        graph.add_precedence_rule(first_attribute=a_one, then_attribute=b_one)
        graph.add_precedence_rule(first_attribute=a_one, then_attribute=b_two)
        graph.add_precedence_rule(first_attribute=a_two, then_attribute=b_one)
        graph.add_precedence_rule(first_attribute=a_two, then_attribute=b_two)
        graph.add_precedence_rule(first_attribute=b_one, then_attribute=b_two)
    assert graph.get_freeze_order() == [a_one, a_two, b_one, b_two]