Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Graphs & Networks > Graph Programming > PropertyList >
Mathematica > Visualization and Graphics > Graphs & Networks > Graph Programming > PropertyList >
Mathematica > Mathematics and Algorithms > Graphs & Networks > Graph Representation and Properties > Graph Programming > PropertyList >

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
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF