StarGraph

StarGraph[n]

gives the star graph with n vertices .

Details and Options

  • A star graph of order is a tree with one vertex of degree and the remaining vertices of degree one.
  • StarGraph[n,DirectedEdges->True] gives a star graph where all edges are directed from the vertex of degree to the remaining vertices.
  • StarGraph takes the same options as Graph.

Examples

open allclose all

Basic Examples  (2)

The first few star graphs :

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

Directed star graphs:

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

Options  (80)

Applications  (7)

Properties & Relations  (6)

Neat Examples  (1)

See Also

Graph  GraphData  WheelGraph  CycleGraph  CompleteGraph

Introduced in 2010
(8.0)