Mapping dynamics to networks: the Pomeau-Manneville scenario