converted graph rules to data;  end user can change rules
formatting & minor