This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

RemoveProperty

RemoveProperty
removes all properties associated with item in obj.
RemoveProperty
removes the property name associated with item in obj.
  • Properties are used to store and manipulate pairs for specific named items within an object such as Graph.
  • The items available for Graph objects include vertices and edges.
Remove a vertex or edge property:
Remove a vertex or edge property:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Remove one property from vertices:
And from edges:
Remove all properties from vertices:
And from edges:
Remove several properties from vertices:
And from edges:
Set several properties for a graph:
Remove vertex properties including VertexStyle:
Non-visual properties include VertexWeight:
A custom property:
Set several properties for a graph:
Remove edge properties including EdgeStyle:
Non-visual properties include EdgeWeight:
A custom property:
Use Fold to apply RemoveProperty repeatedly:
See all the partial results:
Use Property as a wrapper to specify properties in functions such as Graph:
Use PropertyValue to extract values:
For undefined properties, the value $Failed is returned:
Use PropertyValue to set properties in a graph:
The original graph has changed:
Use PropertyValue to unset properties in a graph:
The original graph has changed:
Use PropertyList to test for the presence of a property:
Generate list of vertex label rules:
Use SetProperty to set a property without changing the original:
The original graph is unchanged:
PropertyValue is typically faster than RemoveProperty:
New in 8