1

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"]?

nasosev
  • 415
  • 2
  • 8

1 Answers1

3

Use 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]} &)
]
azt
  • 446
  • 3
  • 6
  • 2
    I would recommend using SetProperty and the new Graph objects (since v8) instead of the deprecated GraphPlot. – Szabolcs Sep 09 '15 at 08:29