Properties

Properties
is an option that allows specification of properties to objects and items of objects.

DetailsDetails

  • Properties->{item1->{prop1->val1,prop2->val2,},} indicates that has the property-value pairs , , etc.
  • The items available for Graph objects include vertices and edges.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Specify a vertex property:

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

Specify a property for the graph itself:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2010
(8.0)