Scilab Function
Last update : 5/9/2006
tran - translate the head and tail of graph into the matrix G structure like the adjacency link
Calling Sequence
-
G = tran(a,b,N)
Parameters
-
a
: row vector of the numbers of the tail nodes of the graph (its size is the number of edges of the graph)
-
b
: row vector of the numbers of the head nodes of the graph (its size is the number of edges of the graph)
-
N
: the node number of the model
-
G
: the translated matrix. G[i][0] represents the degree of node i. G[i][1],G[i][2]... represent its neighbors.
Description
-
tran creates the matrix structure link adjacency link for one graph. It is a useful function for the complex network because it is easy to write the program in scilab.
Examples
G=tran(a,b,N);
See Also
bet
,
cluster
,
Authors
-
Wubo