Figure out the Q matrix for default graph.