Skip to main content

Intersect Sets

Find the intersection of two sets

Written by Holly Conrad Smith

Use this to find what two groups have in common — for example, which usage types appear in both your base model and a scenario, or which parcel IDs are shared between two site boundaries.

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 intersection of 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

intersection

I

Set

Item

the intersection of the two sets

How to

  1. Add the Intersect Sets node.

  2. Feed in two sets.

  3. The output is a new set containing only the items that appear in both.

Did this answer your question?