I used the following materials for the classes on July 18 and 25.
The third problem of set #2 has been removed. Just do the three problems for set #2.
A Bayesian Approach to Data Compression
If your graph is not neat, use vertex.size option like plot(g, vertex.size=1) instead of plot(g), or execute plot command several times until you’re satisfied with the graph.