circuit analysis using graph theory 5041135