Assign id at top level

So you can do id.graph(), etc. in the console for debugging.