Added union() to set.h, *.swp to .gitignore

Also minor revisions in digraph.h