Properties

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)

Specify a vertex property:

Specify a property for the graph itself:

Inherit all properties of the graph:

Use automatic inheritance of properties:

Set no inheritance:

Scope  (5)

Basic Uses  (1)

Set properties for vertices:

And edges:

Vertex Properties  (2)

Standard vertex properties include VertexStyle:

VertexLabels:

VertexSize:

VertexShape:

Specify a custom property:

Edge Properties  (2)

Standard edge properties include EdgeStyle:

EdgeLabels:

Specify a custom property:

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

CMS

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2023_properties, organization={Wolfram Research}, title={Properties}, year={2019}, url={https://reference.wolfram.com/language/ref/Properties.html}, note=[Accessed: 19-March-2024 ]}