I am trying to draw useful tensor networks in Mathematica (for ex: two of these are shown below). I was not sure that people use Mathematica for this until I came across
To understand how it works look up in docs every single function from this definition starting with KaryTree. Example with different branches and levels: