Spurious error for empty alternative in regex fix #42
create base class for graph view and simplify editor/view synchronization