graphs and keys