For people who have gas, beans definitely increase gas so you could avoid those things and focus on other fiber-rich foods. Here are some other foods that are gassy -
Asparagus
Brussells sprouts
Broccoli
Cabbage
Cauliflower
Eggplant
Radish
They have a plant sugar in them called raffinose that your body turns into gas
There are pills you can take to counteract the gas if you want to keep eating these and not have gas issues!
Actually in terms of cooking, cooking a food breaks down the fiber, it gets mushy. So for example if you boil veggies you are typically losing fiber. However if you steam many veggies you make their vitamins more easily digested. So a lot of it depends on HOW you cook it.