This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.

# PropertyValue

 PropertyValue gives the property value associated with name for item in obj.
• Properties are used to store and manipulate pairs for specific named items within an object such as Graph.
• PropertyValue[{obj, item}, name]=val can be used to modify the property value.
• The items available for Graph objects include vertices and edges.
Generate a complete graph with properties:
Retrieve the property value associated with property name:
Change the property value:
Unset the property value:
Generate a complete graph with properties:
 Out[1]=
Retrieve the property value associated with property name:
 Out[2]=
Change the property value:
 Out[4]=
Unset the property value:
 Out[6]=
 Scope   (8)
Set a property value for vertex 1:
Retrieve the property value for vertex 1:
Set a property value for the edge :
Retrieve the property value for the edge :
Unset properties for vertices:
And edges:
PropertyValue returns \$Failed for undefined properties:
Standard vertex properties include VertexStyle:
Non-visual properties include VertexWeight:
Set a custom property:
Standard edge properties include EdgeStyle:
Non-visual properties include EdgeWeight:
Set a custom property:
 Applications   (5)
Use Do to set several property values:
Or different property values for different items:
Use Table to build a list of property values:
Create a weighted graph:
Set edge weights:
Compute weight scale:
Set the edge thickness to reflect the edge weight:
Highlight a path and mark the beginning point and endpoint:
Select vertices along a path:
Highlight by setting edge style along the path and vertex labels for start point and endpoint:
Dynamically highlight the edges in the order given by EdgeList: