How can the display of graphs using GraphData
be customized?
For example, how can we customize the vertex style, color, edge thickness of the output toGraphData["TetrahedralGraph"]
?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityUse GraphPlot
and the many options there.
Specifically for your question the options are VertexRenderingFunction
and EdgeRenderingFunction
.
Example:
GraphPlot[GraphData["TetrahedralGraph"],
EdgeRenderingFunction -> ({Red, Thickness[.01], Line[#1]} &),
VertexRenderingFunction -> ({Blue, PointSize[.03], Point[#1]} &)
]
SetProperty
and the new Graph
objects (since v8) instead of the deprecated GraphPlot
.
$\endgroup$