Codes for Complex Network Modeling and Analysis