graphs and code