-
…in reply to @getify
getify Heh, it takes me significant reading to pick up even one more fact each time. Way too much nonsense algebra. Anyway, that image in the linked section is exactly your code: 1
if, 2 outcomes, 1 nextif, 2 outcomes, 1 exit. Loop for N + P. 9 Edges - 7 Nodes + 1 component = 3. -
…in reply to @rockerest
getify You can also do it without the loop: 8 edges - 7 nodes + 2 = 3