This is a quick outline on using subgraphs. The application is to audit bandgap outputs, or current reference nets.
The example is a pre-defined subgraph of current mirror, which is recognized during netlist loading. The script is a simple loop that checks specific nets against their connections, using the pre-recognized subgraphs. That is, checking each net to make sure they are loaded by specific connections in current mirrors.
While this is not a complete plugin, you should be able to modify the basic elements for your own use. Make sure the SubgraphTemplate.config file is either installed in the default location, or loaded by setting your INSIGHT_PROJPATHS. Run the script to find the results of each tested net.
You will find the application notes, schematic, and example script in samples/const-stack/.