PropertyList

PropertyList[{obj, item}]
lists the properties available for item in obj.

DetailsDetails

  • 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.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

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]=
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »