digimokan / cpp-sliding-eight-puzzle

Sliding Eight-Puzzle solver
0 stars 0 forks source link

Reverse weak/shared parent-child relationship #6

Closed digimokan closed 5 years ago

digimokan commented 5 years ago

Description

Reverse which is weak_ptr/shared_ptr in the SearchNode parent-to-child relationship. This enables removal of the node_set collection of all graph nodes in SearchGraph (required to keep children weak_ptr's from expiring), and fixes #3.

Type Of Change

Tests Performed

All unit tests pass with --no-skip for doctest unit tester.

Test Configuration:

Checklist: