Skip to main content

Difference Sets

Find the difference between two sets

Written by Holly Conrad Smith

Use this to find what's in one group but not another — for example, which usages exist in your base model but were removed in a scenario, or which parcels dropped out of a site after a boundary change.

Set vs. List: a List (array) keeps items in order and can hold duplicates — you access items by position, like "the 3rd item." A Set has no order and no duplicates — adding an item that's already there does nothing, and there's no "position" to ask for. Sets are for asking "is this here?" and for comparing groups of things; Lists are for ordered, step-by-step sequences.

Category: Sets

Kind: Operation

Description: find the difference between two sets

Inputs

Name

Abbreviation

Type

Access

Description

set1

S1

Set

Item

the first set

set2

S2

Set

Item

the second set

Outputs

Name

Abbreviation

Type

Access

Description

difference

D

Set

Item

the difference of the two sets

How to

  1. Add the Difference Sets node.

  2. Feed in two sets — order matters here.

  3. The output is a new set containing only the items in "set1" that are not also in "set2".

Did this answer your question?