Adding cycle tests for undirected graphs.

Previously test_cyclic_by_dfs only worked for directed tests. This commit adds
cycle tests for undirected graphs. This requires the addition of a colormap
for graph edges.