2013-04-12-AdjacencyRepresentations
Table of Contents
1 Homework
- Represent graphs as adjacency matrix, adjacency list
- Work on your projects
- Review your midterm
2 Graphs
3 Output
- File in Github pull request
- Represent Matrix and list in some sort of organized way
[[0 1 1 1] [1 0 0 1] ...] {1: [2,3,4], 2: [1, 4]}
0,1,1,1 1,0,0,1 ... 1,2,3,4 2,1,4
4 NetworkX
- Python library for manipulating graphs
- Potentially useful for your projects
- Not homework
5 VirtualEnv
- Install and manage libraries
activate
each time you start a new session
$ virtualenv venv $ source venv/bin/activate $ pip install <python package>