<< NL_G_Betweenness NL_G: Graph NL_G_ConnectionNeighbors >>

NARVAL >> NL_G: Graph > NL_G_Brite2Scilab

NL_G_Brite2Scilab

Import a graph generated by the BRITE topology generator.

Calling Sequence

[G] = NL_G_Brite2Scilab(P,N)

Arguments

P :

File path.

N :

Name of the network graph generated by BRITE.

G :

Graph.

Description

NL_G_Brite2Scilab imports a graph topology created by the topology generator BRITE. The graph structure is assumed to be stored into the file 'name.brite'. First of all, a Perl script (see /demos) is executed in order to adapt the data into the appropriate format ('perl brite2format name.brite'). As a consequence two files are generated, node_name.brite and link_name.brite. Then the topology G is finally loaded into the Scilab environment.

Examples

[path]=NL_F_NLPath();//path to the NARVAL module
path=path+'/demos/';//folder path
name='as_300_ba.brite';//file name
[g]=NL_G_Brite2Scilab(path,name);//application of NL_G_Brite2Scilab
ind=1;//window index
f=NL_G_ShowGraph(g,ind);//graph visualization

Dependency

NL_G_MakeGraph

Report an issue
<< NL_G_Betweenness NL_G: Graph NL_G_ConnectionNeighbors >>