multiply graphs