WLJS LogoWLJS Notebook

HighlightGraph

HighlightGraph[g, {a1, a2, ...}] highlights vertices, edges, or subgraphs ai of the graph g.

Examples

Highlight specific vertices:

HighlightGraph[Graph[{1 -> 2, 2 -> 3, 3 -> 1}], {1, 2}]

Highlight edges with style:

HighlightGraph[CompleteGraph[5], {1 <-> 2, 2 <-> 3}, VertexLabels -> Automatic]

Please visit the official Wolfram Language Reference for more details.

On this page