Add class method for creating cycle graphs. Part of #12