Connect – Limitations for possible connections of edges

The connect term specifies the way an edge can connect nodes. (Which node classes can be connected in which way.)

Example code:

1 const node class Metropolis extends City {
2 River:String;
3 }
4 edge class Street;
5 edge class Trail extends Street;
6 edge class Highway extends Street
7  connect Metropolis[+] --> Metropolis[+]

How to use it:

More Examples can be found in these Packages:

Was this article helpful?

Related Articles