This effect can be achieved by creating a random walk using a loop as you suggested. It is important to make sure the random walk satisfy certain conditions:
The step direction has to be parallel to one of the three fundamental axis, or else the perpendicularity of the network won't be achieved. This is achieved by defining the step as a unit vector with two zeros components.
Each step should not be parallel to the previous step, or else the network will have edges of non uniform length and overlapping edges. This is achieved by making sure the non zero component of the step vector is not the same as the previous step, that is, a different component should be the non zero.
The implementation is rather advanced, so it might not make much sense for novice. First, we add a vector parameter representing the starting point of the random walk, at each iteration, this parameter is reassigned to itself plus the step vector. Then, we add a constant integer list parameter Range containing (0, 1, 2), those integers represent the possible indices of the component that will have a non zero value. An integer parameter Last Axis that represents the index of the component that was non zero in the previous iteration is added and reassigned to the index of the non zero component chosen at the current iteration. The index of the non zero component is chosen randomly from the Range list after removing the Last Axis integer from it. We now know which component will have a nonzero value, to construct such vector, we add a constant float list parameter filled with three zeros (0, 0, 0) and set the component of the chosen index to one or negative one based on the sign of a signed random number. Then this float list is converted to a vector generating the required step vector. The seed of the random generators shall be equal to an input integer parameter multiplied by the number of iterations plus the index of the current iteration, making sure the seed is unique for every input integer for every iteration. Note that the zeros and range lists have to enforce copying because they are mutable object that are being edited multiple times. So, the node tree becomes as follows:

Another loop is constructed to generate multiple splines based on multiple random walkers. A random starting point is chosen per iteration:

Lastly, the output splines are trimmed to have the animation effect:
