<jupyter_start><jupyter_text>Simplifying the `Network` objectUsing OSM data to generate a network results in a very node-dense network. GeNet has methods to simplify such networks.<jupyter_code>from genet import read_osm
n = read_osm('../example_data/example.osm', 
             '../genet/configs/OSM/slim_config.yml',
            epsg='epsg:27700')
n.print()<jupyter_output>2021-04-13 19:07:28,300 - Building OSM graph from file ../example_data/example.osm
2021-04-13 19:07:28,790 - Creating networkx graph from OSM data
2021-04-13 19:07:28,791 - OSM: Extract Nodes and Paths from OSM data
2021-04-13 19:07:29,000 - OSM: Add each OSM way (aka, path) to the OSM graph
2021-04-13 19:07:29,003 - Created OSM edges
2021-04-13 19:07:30,936 - Added 8695 nodes
2021-04-13 19:07:36,825 - Generated 802 link ids.
2021-04-13 19:07:37,193 - Added 802 links
2021-04-13 19:07:37,194 - Deleting isolated nodes which have no edges.
2021-04-13 19:07:37,430 - Removed 8132 nodes.<jupyter_text>You can simplify a `genet.Network` using the `simplify` method.<jupyter_code>n.simplify(no_processes=1)

n.print()<jupyter_output>2021-04-13 19:07:37,442 - Begin simplifying the graph
2021-04-13 19:07:37,446 - Generating paths to be simplified
2021-04-13 19:07:37,452 - Identified 114 edge endpoints
2021-04-13 19:07:37,457 - Identified 163 possible paths
2021-04-13 19:07:37,459 - Processing 163 paths
2021-04-13 19:07:37,460 - Found 110 paths to simplify.
2021-04-13 19:07:37,461 - Generated 110 link ids.
2021-04-13 19:07:37,476 - Processing links for all paths to be simplified
2021-04-13 19:07:37,504 - Adding new simplified links
2021-04-13 19:07:37,551 - Generated 0 link ids.
2021-04-13 19:07:37,597 - Added 110 links
2021-04-13 19:07:37,625 - Simplified graph: 563 to 114 nodes, 802 to 163 edges
{'fraction_non_alphanumeric': 0.11791128579449747, 'fraction_numerical': 0.2386299831555306, 'mean_word_length': 4.225806451612903, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '319099', 'license': 'MIT', 'n_tokens_mistral': 958, 'n_tokens_neox': 669, 'n_words': 194, 'path': 'notebooks/5.3. Modifying Network - Simplification.ipynb', 'repo_name': 'arup-group/genet', 'size': '1781'}