Input/output impedance of devices in a circuit simulator
the tool Signal Chain Explorer has an explicit top-level mode(main menu) for Zin and Zout of stages.

The download and use is free. From "robustcircuitdesign.com".

Note the tool models a chain of stages ( a chain ) and does not allow a general graph.