Preparing to implement Algorithm::MWMGeneral

- Organize graphs into a module
- Introduce Algorithm::MWMGeneral
- Introduce convenient constructor for weighted graphs