SetProperty[{obj, item}, name->value]
sets the property for item in obj.


  • Properties are used to store and manipulate pairs for specific named items within an object such as Graph.
  • SetProperty will produce a new graph with a modified property value.
  • The items available for Graph objects include vertices and edges.
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »