Simple utilities for converting to and from network representation