<< NL_G_GraphCenter NL_G: Graph NL_G_GraphConnexPartI >>

NARVAL >> NL_G: Graph > NL_G_GraphConnexPart

NL_G_GraphConnexPart

Extract the largest connex component of a graph.

Calling Sequence

[Go] = NL_G_GraphConnexPart(G)

Arguments

G :

Graph.

:

Output graph.

Description

NL_G_GraphConnexPart extracts the largest connex component of the graph G.

Examples

n=50;//network size
L=1000;//network square area side
dmax=100;//locality radius
[g]=NL_T_Locality(n,L,dmax);//generation of a random topology in respect with the Locality method.
[g1]=NL_G_GraphConnexPart(g);//application of NARVAL_G_GraphConnex
i1=1;//window index
i2=2;//window index
NL_G_ShowGraphN(g,i1);//graph visualization
NL_G_ShowGraphN(g1,i2);//graph visualization

Dependency

NL_G_ConnexComponent, NL_F_ReverseVector, NL_G_NodeNeighbors, NL_G_MakeGraph, NL_G_GraphEdgesLength

Report an issue
<< NL_G_GraphCenter NL_G: Graph NL_G_GraphConnexPartI >>