refactored graph
added code to 16 choose 2 combinations