Simplified API for adding nodes and edges.

I've tried to simplify the code and added interface that required less typing for simple graphs. Hopefully you will find it useful.