({{, (RefLink[GraphStyle, paclet:ref/GraphStyle]) 
is an option to (RefLink[Graph, paclet:ref/Graph]) and related objects that specifies styles to use for the different graph elements. }})

OpenersNotesSection(Spacer1)Details

Typical settings include: (RefLink[Automatic, paclet:ref/Automatic]), "BlackAndWhite", "DynamicHighlight", etc.

GraphElementData["GraphStyle"] gives a complete list of settings.

A (RefLink[GraphStyle, paclet:ref/GraphStyle]) setting contains base settings for the following options: (RefLink[EdgeShapeFunction, paclet:ref/EdgeShapeFunction]), (RefLink[EdgeLabels, paclet:ref/EdgeLabels]), (RefLink[EdgeStyle, paclet:ref/EdgeStyle]), (RefLink[GraphLayout, paclet:ref/GraphLayout]), (RefLink[VertexShapeFunction, paclet:ref/VertexShapeFunction]), (RefLink[VertexLabels, paclet:ref/VertexLabels]), (RefLink[VertexShape, paclet:ref/VertexShape]), (RefLink[VertexSize, paclet:ref/VertexSize]), and (RefLink[VertexStyle, paclet:ref/VertexStyle]), as well as all the supported (RefLink[Graphics, paclet:ref/Graphics]) options.

Direct settings of any of (RefLink[Graph, paclet:ref/Graph]) options override base settings provided by (RefLink[GraphStyle, paclet:ref/GraphStyle]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (8)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Set the style for a complete graph:

CompleteGraph[5,GraphStyle->"DiagramBlack"]

OpenersExampleSection1(Spacer1)Scope  (7)

(RefLink[GraphStyle, paclet:ref/GraphStyle]) gallery:

GraphElementData["GraphStyle"]

CompleteGraph[5,GraphStyle->#,PlotLabel->#]&/@Rest[%]

(RefLink[GraphStyle, paclet:ref/GraphStyle]) can be used for general graphs:

{Graph[{1\[UndirectedEdge]2,2\[UndirectedEdge]3,3\[UndirectedEdge]1},GraphStyle->"DiagramGold"],PathGraph[Range[4],GraphStyle->"DiagramGold"]}

Matrix graphs:

AdjacencyGraph[{{0,1,1},{1,0,1},{1,1,0}},GraphStyle->"DiagramGold"]

Special graphs:

{PetersenGraph[5,2,GraphStyle->"DiagramGold"],GridGraph[{4,4},GraphStyle->"DiagramGold"]}

Random graphs:

RandomGraph[UniformGraphDistribution[10,20],GraphStyle->"DiagramGold"]

Any options of (RefLink[Graph, paclet:ref/Graph]) override base settings provided by (RefLink[GraphStyle, paclet:ref/GraphStyle]):

CompleteGraph[5,GraphStyle-> "DiagramBlack"]

CompleteGraph[5,EdgeStyle->Blue,VertexStyle->Pink,GraphStyle-> "DiagramBlack"]

Any wrapper has higher priority than (RefLink[GraphStyle, paclet:ref/GraphStyle]) and (RefLink[Graph, paclet:ref/Graph]) options:

Graph[{Style[1,Yellow],2,3},{1\[UndirectedEdge]2,2\[UndirectedEdge]3,3\[UndirectedEdge]1},EdgeStyle->Blue,VertexStyle->Pink,GraphStyle-> "DiagramBlack"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Graph, paclet:ref/Graph])  ▪  (RefLink[GraphHighlightStyle, paclet:ref/GraphHighlightStyle])  ▪  (RefLink[VertexStyle, paclet:ref/VertexStyle])  ▪  (RefLink[EdgeStyle, paclet:ref/EdgeStyle])  ▪  (RefLink[VertexShapeFunction, paclet:ref/VertexShapeFunction])  ▪  (RefLink[EdgeShapeFunction, paclet:ref/EdgeShapeFunction])  ▪  (RefLink[VertexSize, paclet:ref/VertexSize])  ▪  (RefLink[BaseStyle, paclet:ref/BaseStyle])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Graph Visualization, paclet:guide/GraphVisualization])}, {▪(RefLinkPlain[Graph Styling, Labeling, and Layout, paclet:guide/GraphStylingAndLabeling])}, {▪(RefLinkPlain[Graph Properties, paclet:guide/GraphProperties])}, {▪(RefLinkPlain[Graphs & Networks, paclet:guide/GraphsAndNetworks])}})}})