Integrating graphs and circuit classes

The circuit class has now a functional graph and can insert electrical
components and verify if it's well connected.