NETWORK
01/17/2011: This program has been superseded by NETGEN.
12/21/2010: Version 0.1. The command NETWORK generates matrix representations, betweenness centrality, and clustering coefficients for undirected or directed networks with or without weights. I would like to thank Rense Corten for providing valuable feedback on the program and on the working paper. The zip attachment contains the following files:
NETWORK_SGL12201001main.pdf: Working paper - earlier draft under review at the Stata Journal.
network.ado: Ado-file wrapper for class programs.
network.sthlp: Help file for network.ado.
lsgl.mlib: Mata library.
sgl1.mata: Mata class programs - main focus is on unweighted networks.
sgl2.mata: Mata class programs - main focus is on weighted networks.
lsgl.do: Do-file to re-compile sgl1.mata and sgl2.mata if necessary.
rgraph.ado: Random graph generator.
rgraph.sthlp: Help file for rgraph.ado.
imfcpis2007a.dta: 2007 IMF CPIS Bilateral Investment Flow directed weighted data set (nominal).
florentine_marriages.dta: Florentine marriages undirected unweighted data set (Padgett and Ansell 1993).
Notes: Please contact me for any bugs, suggestions, and comments. As it stand right now, the program is quite slow for large dense undirected networks - I'll be working on trying to see if more efficiency gains can be made by implementing methods such as storing matrix information in sparse form instead full and so on. Thanks.