Structure Trees and Networks