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

PropertyList

PropertyList
lists the properties available for 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.
Get a list of standard properties for a vertex:
For an edge:
Test for the presence of custom properties:
Get a list of standard properties for a vertex:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
For an edge:
In[3]:=
Click for copyable input
Out[3]=
 
Test for the presence of custom properties:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
PropertyList applies to vertices:
And edges:
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 SetProperty to set the properties in a new graph:
The original graph is unchanged:
Use RemoveProperty to remove a property without changing the original:
The original graph is unchanged:
New in 8