HighlightGraph

HighlightGraph[g,{a1,a2,}]

highlights the ai that can be vertices, edges, or subgraphs of g.

HighlightGraph[g,{,wj[aj],}]

highlights using the symbolic wrappers wj.

HighlightGraph[{vw,},]

uses rules vw to specify the graph g.

Details and Options

  • The following wrappers can be used:
  • Annotation[a,label]provide an annotation
    Button[a,action]define an action to execute when the element is clicked
    EventHandler[a,]define a general event handler for the element
    Hyperlink[a,uri]make the element act as a hyperlink
    Labeled[a,]display the element with labeling
    PopupWindow[a,cont]attach a popup window to the element
    Property[a,name->value]set a property for the element
    StatusArea[a,label]display in the status area when moused over
    Style[a,opts]show the element using the specified styles
    Tooltip[a,label]attach an arbitrary tooltip to the element
  • HighlightGraph takes the same options as Graph.
  • Styles and other specifications for vertices and edges are taken to apply to the highlighted elements ai.

Examples

open allclose all

Basic Examples  (4)

Highlight vertices 1, 2, and 3:

In[1]:=
Click for copyable input
Out[1]=

Highlight edges 12 and 34:

In[1]:=
Click for copyable input
Out[1]=

Highlight vertices 1, 2, and 3 and edges 12 and 34:

In[1]:=
Click for copyable input
Out[1]=

Highlight the subgraph defined by a shortest path:

In[1]:=
Click for copyable input
Out[1]=

Scope  (7)

Options  (28)

Applications  (15)

Properties & Relations  (2)

See Also

Graph  GraphHighlightStyle  GraphHighlight  Subgraph  NeighborhoodGraph

Introduced in 2010
(8.0)
| Updated in 2015
(10.3)