Network.
from_dict
Create a network from a dictionary.
The dictionary has to be in a form returned by the as_dict method.