Add class method for creating path graphs. Path of #12