Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Add a relation for a pair of tasks, or a list relations for a set
task-pairs, to the workload.  

Relations are expected of type `Relation`, and can only be
added once.  The related tasks must already be in the
`Workload` -- otherwise a `ValueError` is raised.

src/t/r/troy-0.0.3/tests/unittests/planner/test_expand_workload.py   troy(Download)
    for relation_dict in wl_dict['relations']:
        relation_description = troy.RelationDescription(relation_dict)
        wl.add_relation(relation_description)
 
    if not wl.state is troy.DESCRIBED:

src/t/r/troy-0.0.3/tests/unittests/planner/test_derive_overlay.py   troy(Download)
    for relation_dict in wl_dict['relations']:
        relation_description = troy.RelationDescription(relation_dict)
        wl.add_relation(relation_description)
 
    overlay_id = planner.derive_overlay(wl.id)