Verify Paths

discopygal.solvers_infra.verify_paths.verify_paths(scene: Scene, paths: PathCollection)

Get a scene and a path, and verify that the given path collection is indeed a valid solution

Parameters:
  • scene (Scene) – scene

  • paths (:class:~discopygal.solvers_infra.PathCollection`) – paths to verify

Returns:

True if paths are valid and if invalid, return a reason.

Return type:

bool, str