Minor refactoring.

Get rid of "this", which was abused in most cases.
Enums in separate files.
Graph generator can now produce paralell edges.
Paralell edges limit setting and menu item added.
Minor renames.