AnnotationRules
is an option that allows specification of annotations to objects and items in objects.
Details
- Typically used to specify annotations to objects and items in objects.
- Possible objects with items that can be annotated:
-
Audio time points and time intervals BoundaryMeshRegion mesh cells Graph vertices and edges MeshRegion mesh cells - AnnotationRules is always converted to an optimized standard form with structure.
- The AnnotationRules option can be used to specify inheritance of annotations in constructs such as Subgraph, EdgeAdd and GraphUnion.
- Typical settings for inheritance of annotations include:
-
Inherited inherit all annotations Automatic use automatic inheritance of annotations None set no inheritance
Examples
open allclose allBasic Examples (2)
Scope (12)
Graphs & Networks (12)
Graph annotations (8)
Set annotations for the graph itself:
Set default annotations for vertices:
AnnotationRules works with undirected graphs:
Vertex annotations (2)
Standard vertex annotations include VertexStyle:
Edge annotations (2)
Standard edge annotations include EdgeStyle:
Applications (4)
Create a graph with various annotations associated with the vertices:
Options uses AnnotationRules to handle some of the annotations:
Generate an input form of the graph:
Use Table to set similar annotations for many items:
Use Thread when annotation values are available in lists:
Text
Wolfram Research (2019), AnnotationRules, Wolfram Language function, https://reference.wolfram.com/language/ref/AnnotationRules.html (updated 2020).
CMS
Wolfram Language. 2019. "AnnotationRules." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/AnnotationRules.html.
APA
Wolfram Language. (2019). AnnotationRules. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AnnotationRules.html