Minimal edge colorings of class 2 graphs and double graphs