blob: e8c602db5966fb0213f4ee74f663b7fb909f3052 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# circgraph
This is a tool for calculating equivalent
resistances/impedances/capacitances for a circuit (represented as a
graph, hence "circuit graph"), written in C++.
# Motivation
This program exists for three reasons: boredom, a desire to brush up
on my C++, and -- most importantly -- laziness. Why do tedious
arithmetic when you can spend hours writing a program to do it for
you?
# Usage
Compile with:
```
g++ main.cpp -o circgraph
```
`circgraph` takes input from stdin in the following format:
```
<source_node> <sink_node>
<node1> <node 2> <weight>
<node1> <node 2> <weight>
...
```
See the `testX.txt` files for examples.
|