More coherent interface for queue_network. Fixed graph_generation bug.