-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Milestone
Description
Looking at the function isValidNode I see that a cost of 0 is forbidden.
function isValidNode(val) {
const cost = Number(val);
if (isNaN(cost) || cost <= 0) {
return false;
}
return true;
}
I think a cost of 0 is a valid situation meaning that there is a connection between 2 nodes while it is costless.
Is there any reason for this limitation?
vilicvane, juanmarcosdev and lucasjvw
Metadata
Metadata
Assignees
Labels
No labels