How can I get this?

To judge each node contains…
Thank you.

Use Groups: GoJS Groups -- Northwoods Software