WeBWorK Problems

NAU graphs label in solutions

NAU graphs label in solutions

by Federico Galetto -
Number of replies: 0

Hello!

I am trying to modify the following problem in the Open Library:

Library/NAU/setGraphTheory/IsTree.pg

I am trying to write solutions that refer to the graphs pictured in the problems by their labels A,B,C,D. I construct four graphs and corresponding text strings $T1, $T2, $T3, $T4 describing their properties that I want to put in the solution. I would like the solutions to read something like: "Graph A has property $T1", "Graph B has property $T2", etc.

The problem is that the position of the graphs is randomized by the function checkbox_table, and I don't know how to recover the labels after the randomization takes place.

Any help is greatly appreciated!

Thanks, Fred.