RemoveProperty

RemoveProperty[{obj,itemspec}]

removes all properties associated with itemspec in obj.

RemoveProperty[{obj,itemspec},name]

removes the property name associated with itemspec in obj.

Details

  • Properties are used to store and manipulate name->value pairs for specific named items within an object such as Graph, MeshRegion, and BoundaryMeshRegion.
  • RemoveProperty will produce an object with the specified property removed.
  • The item specification itemspec typically has the form {collection,index}.
  • The index can typically have the following forms:
  • inda single index
    {ind1,ind2,}a list of indexes
    Allall possible indexes in collection
    pattindexes that match patt in collection
  • The collection can typically have the following forms:
  • cola single collection
    {col1,col2,}a list of collections
    Allall possible collections
    pattcollections that match patt
  • The item specification itemspec of the form collection refers to the default value for all indexes in the collection.
  • For standard properties, RemoveProperty effectively resets the value to the property default value.
  • Objects that support properties include Graph, MeshRegion, and BoundaryMeshRegion. Item specifications for each type of object is given in their reference pages.

Examples

open all close all

Basic Examples  (1)

Remove a vertex or edge property:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (4)

Applications  (1)

Properties & Relations  (6)

Possible Issues  (1)

Introduced in 2010
(8.0)
|
Updated in 2015
(10.2)