Added multi-rooted graphs

This is important for the end use case.