Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Mathematics and Algorithms > Graphs & Networks > Graph Styling, Labeling, and Layout > HighlightGraph >
Mathematica > Visualization and Graphics > Graphs & Networks > Graph Styling, Labeling, and Layout > HighlightGraph >

HighlightGraph

HighlightGraph
highlights the that can be vertices, edges, or subgraphs of g.
HighlightGraph
highlights using the symbolic wrappers .
  • 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
StatusArea[a,label]display in the status area when the element is moused over
Style[a,opts]show the element using the specified styles
Tooltip[a,label]attach an arbitrary tooltip to the element
Highlight vertices 1, 2, and 3:
Highlight edges and :
Highlight vertices 1, 2, and 3 and edges and :
Highlight the subgraph defined by a shortest path:
Highlight vertices 1, 2, and 3:
In[1]:=
Click for copyable input
Out[1]=
 
Highlight edges and :
In[1]:=
Click for copyable input
Out[1]=
 
Highlight vertices 1, 2, and 3 and edges and :
In[1]:=
Click for copyable input
Out[1]=
 
Highlight the subgraph defined by a shortest path:
In[1]:=
Click for copyable input
Out[1]=
HighlightGraph works with vertices:
Edges:
Subgraphs:
Get a list of built-in settings for GraphHighlightStyle:
Use built-in settings for GraphHighlightStyle:
Highlight all edge covers for a cycle graph:
Enumerate all subsets of edges and select the covers:
Highlight covers:
Manipulate the neighborhood of vertices:
Manipulate the subgraph of a random set of vertices:
Manipulate the breadth-first tree starting from each vertex:
GraphHighlight can be used to set the elements to highlight for a graph:
Set the GraphHighlightStyle of a graph to specify the style of highlight:
New in 8
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF