I am stuck on how I can do a for loop to count up the number of nodes represented in a text file, which looks like this;
0,2,4,1,6,0,0 2,0,0,0,5,0,0 4,0,0,0,5,5,0 1,0,0,0,1,1,0 6,5,0,1,0,5,5 0,0,5,1,5,0,0 0,0,0,0,5,0,0
I want to say for each node in the file, which of course would be 7 nodes, but i'm confused as to how I go about saying it in code


Sign In
Create Account

Back to top









