generalize Node value from Char to String
p89 determine graph bipartite-ness