Closed Caruychen closed 2 years ago
Make_mode function currently creates node in heap and returns pointer. Instead, it can just be created in stack and returned as variable. The flow network array has as each element a copy of the node, instead of a pointer to the node.
Make_mode function currently creates node in heap and returns pointer. Instead, it can just be created in stack and returned as variable. The flow network array has as each element a copy of the node, instead of a pointer to the node.