Added support for MultiGraph