Series/parallel resistive circuit 3

.PS
include(pstricks.m4)

scale=25.4  # Scale in mm per inch

cct_init

vsp=25  # Vertical spacing
hsp=25  # Horizontal spacing

O: (0,0)  # Define the origin point for the circuit

move to O

Vx: source(up_ vsp,V); llabel(,v_x,)
R1: resistor(right_ hsp); llabel(,R_1,); rlabel(,5\;\Omega,)
{ # Push current location to the "stack"
  dot(at Here)
  R2: resistor(down_ to (Here.x,O.y)); rlabel(,R_2,); llabel(,10\;\Omega,)
  dot(at Here)
} # Return to the previous location on the "stack"
line right hsp
{ # Push current location to the "stack"
  dot(at Here)
  R3: resistor(down_ to (Here.x,O.y)); rlabel(,R_3,); llabel(,5\;\Omega,)
  dot(at Here)
} # Return to the previous location on the "stack"
line right hsp
R4: resistor(down_ to (Here.x,O.y)); rlabel(,R_4,); llabel(,5\;\Omega,); b_current(5\;\text{A})
line to O

.PE