NetworkX and Plazes with Amazon EC2

From rukapedia
Jump to: navigation, search

Set up an Amazon EC2 instance -- the Getting Started Guide is a good place to start.

SSH to your instance.

Install the required software to enable NetworkX and Matplotlib:

gunzip networkx-0.36.tar.gz
tar -xvf networkx-0.36.tar
cd networkx-0.36
python install
yum install python-matplotlib.x86_64
yum install pygobject2.x86_64
yum install pygtk2.x86_64

Now you should be able to run my Plazes + NetworkX Python script:

python -dPDF

The result will be a PDF file called plazes.pdf with the network diagram.