GraphTheory/RandomGraphs/BarabasiAlbertGraph - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

Home : Support : Online Help : GraphTheory/RandomGraphs/BarabasiAlbertGraph

GraphTheory[RandomGraphs]

  

BarabasiAlbertGraph

  

generate Barabasi-Albert random graph

 

Calling Sequence

Parameters

Options

Description

Definition

Examples

References

Compatibility

Calling Sequence

BarabasiAlbertGraph(n,m,opts)

Parameters

n,m

-

positive integers

opts

-

(optional) one or more options; see below

Options

• 

initial = posint 

  

Number of initial vertices. The default value is m.

• 

seed = integer or none

  

Seed for the random number generator. If an integer is specified, this is equivalent to calling randomize(seed) immediately before invoking this function. The default is none.

Description

• 

BarabasiAlbertGraph(n,m,opts) creates a Barabási–Albert random graph with n vertices, in which each new vertex added after the initial step is connected to m existing vertices.

• 

The random number generator used can be seeded using the randomize function or the seed option.

Definition

• 

The Barabási–Albert model is an algorithm for generating random graphs which are scale-free. It begins with some number of initial vertices. Additional vertices are then added incrementally until there are n vertices. Each new vertex v is connected is connected to m existing vertices with a probability which is proportional to the degree of each existing vertex at the moment v is added.

Examples

(1)

The DegreeSequence command returns a list of degrees of the vertices for a given graph.

(2)

(3)

To view the degree distribution of a Barabási-Albert graph:

Generate a sequence of Barabási-Albert graphs with 20 initial vertices.

A graph is bi-connected if it is connected and removal of any vertex from the graph does not disconnect it. A maximal bi-connected subgraph is called a bi-connected component.

To view the distribution of the number of vertices in the bi-connected components.

The graphs above typically have one large bi-connected component and several smaller ones that generally have degree 1. This can be visualized as follows for the first graph in the sequence.

(4)

(5)

(6)

References

  

Albert, Réka; Barabási, Albert-László (2002). "Statistical mechanics of complex networks". Reviews of Modern Physics. 74 (1): 47–97. arXiv:cond-mat/0106096. Bibcode:2002RvMP...74...47A. CiteSeerX 10.1.1.242.4753. doi:10.1103/RevModPhys.74.47. ISSN 0034-6861.

Compatibility

• 

The GraphTheory[RandomGraphs][BarabasiAlbertGraph] command was introduced in Maple 2019.

• 

For more information on Maple 2019 changes, see Updates in Maple 2019.

See Also

DrawGraph

HighlightSubgraph

InducedSubgraph

RandomGraph

 


Download Help Document