WOLFRAM

As of Version 12.1, Properties has been superseded by AnnotationRules.

Properties

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

Details

  • The Properties option can be used to specify properties to objects and items of objects such as Graph, MeshRegion and BoundaryMeshRegion.
  • Properties->{item1->{prop1->val1,prop2->val2,},} indicates that item1 has the property-value pairs prop1->val1, prop2->val2, etc.
  • Item specifications for each type of object are given in their reference pages.
  • The Properties option can be used to specify inheritance of properties in constructs such as Subgraph, EdgeAdd and GraphUnion.
  • Typical settings for inheritance of properties include:
  • Inheritedinherit all properties
    Automaticuse automatic inheritance of properties
    Noneset no inheritance

Examples

open allclose all

Basic Examples  (3)Summary of the most common use cases

Specify a vertex property:

Out[1]=1

Specify a property for the graph itself:

Out[1]=1
Out[2]=2

Inherit all properties of the graph:

Out[2]=2

Use automatic inheritance of properties:

Out[3]=3

Set no inheritance:

Out[4]=4

Scope  (5)Survey of the scope of standard use cases

Basic Uses  (1)

Set properties for vertices:

Out[1]=1

And edges:

Out[2]=2

Vertex Properties  (2)

Standard vertex properties include VertexStyle:

Out[1]=1

VertexLabels:

Out[2]=2

VertexSize:

Out[3]=3

VertexShape:

Out[1]=1

Specify a custom property:

Out[1]=1
Out[2]=2

Edge Properties  (2)

Standard edge properties include EdgeStyle:

Out[1]=1

EdgeLabels:

Out[2]=2

Specify a custom property:

Out[1]=1
Out[2]=2
Wolfram Research (2010), Properties, Wolfram Language function, https://reference.wolfram.com/language/ref/Properties.html (updated 2019).
Wolfram Research (2010), Properties, Wolfram Language function, https://reference.wolfram.com/language/ref/Properties.html (updated 2019).

Text

Wolfram Research (2010), Properties, Wolfram Language function, https://reference.wolfram.com/language/ref/Properties.html (updated 2019).

Wolfram Research (2010), Properties, Wolfram Language function, https://reference.wolfram.com/language/ref/Properties.html (updated 2019).

CMS

Wolfram Language. 2010. "Properties." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Properties.html.

Wolfram Language. 2010. "Properties." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Properties.html.

APA

Wolfram Language. (2010). Properties. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Properties.html

Wolfram Language. (2010). Properties. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Properties.html

BibTeX

@misc{reference.wolfram_2025_properties, author="Wolfram Research", title="{Properties}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Properties.html}", note=[Accessed: 05-June-2025 ]}

@misc{reference.wolfram_2025_properties, author="Wolfram Research", title="{Properties}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Properties.html}", note=[Accessed: 05-June-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_properties, organization={Wolfram Research}, title={Properties}, year={2019}, url={https://reference.wolfram.com/language/ref/Properties.html}, note=[Accessed: 05-June-2025 ]}

@online{reference.wolfram_2025_properties, organization={Wolfram Research}, title={Properties}, year={2019}, url={https://reference.wolfram.com/language/ref/Properties.html}, note=[Accessed: 05-June-2025 ]}