NodesGroup.difference

NodesGroup.difference(other)[source]

Create a new group containing members that are in this group but not in another.

Parameters:
otherG

Another group whose members should be removed from this group. Must be of the same group type.

Returns:
G

A new group containing members unique to this group.