Making DualGraph Generic