Python to create Node set-ups?

This is a kinda stupid question, but I’m just starting Blender Python, and I was wondering: Can you use Python to create Node set-ups automatically?

Or is it just limited to making new node types?

Thanks!

I may be mistaken, but I think at the time being, neither. See this thread:
http://blenderartists.org/forum/showthread.php?t=202152

The ability to traverse a node network comes with 2.56 probably, but that may still lack the ability to create nodes.

The dynamic menu is there for adding scripted nodes, but I’m not sure if it’s possible to define new types. Do you have any information on that?