Different kinds of links

Hello, I am trying to create diagrams using different kinds of links. How can I define which type of link use between two types of nodes and which type between others types of nodes? This picture is an example

For cases like that one usually uses data binding. GoJS Data Binding -- Northwoods Software

If there are structural differences, one uses different templates. GoJS Template Maps -- Northwoods Software