In this example, the Actions are used to create a "transport network" containing roads, railways, and stations, using Network Graphs.
We construct this network graph in stages, using multiple Actions and applying name parameters when adding features to differentiate between the current object and what it is being compared to.
The first Action will add Roads to the transport network.
Adds the root Road object and loops over the other Road objectsChecks that the road being checked touches the root road object, then adds them both to the networkMap displaying roads
The second Action does the same thing for the Railways.
Adds the root Railway object and loops over the other Railway objectsChecks that the railway being checked touches the root railway object, then adds them both to the existing networkMap displaying roads and railways
The third Action, creates Stations where the Roads and Railways intersect.
Adds the root Station objectChecks that the Station object intersects the Railway object, then connects them togetherChecks that the Station object intersects the Railway object, then connects them togetherMap displaying roads, railways and stations