Log inGet started
Package

network.module

README.md

network

This module processes the various lines that define a city's layout (skeleton, streets, shoreline, map edge) and converts them into a single, planar graph of junction nodes and connecting edges. It handles crossings, merges nearby junctions, prunes dead ends (unless specified by district rules), and resolves doubled or sharply forked edges. It also identifies streets too steep for cars and converts them to steps. The module assigns attributes to nodes and edges, including stable keys for persistent identification across plans. It outputs the graph as nodes and edges, and also provides a drivable road plan for pathfinding. It is called by the city generation pipeline after streets and other linear features have been defined.