Closed
Description
Description of the problem
Currently we have a generic Node
class which basically has methods and data members for trees. However, when we will add graphs, the above Node
class will not be compatible.
It would be better to use specific classes for, trees i.e., TreeNode
(rename Node
-> TreeNode
) and a new GraphNode
.
This issue aims at discussing the API for the latter.