popframe.method.popuation_frame
Classes
|
Class provides methods for network analysis on geographic data |
- class popframe.method.popuation_frame.PopFrame(*, region: Region)[source]
Bases:
BaseMethod
Class provides methods for network analysis on geographic data
- _connect_levels(towns: GeoDataFrame, G: Graph, from_level: str, to_levels: List[str])[source]
Connects nodes across specified levels
- _connect_same_level(towns: GeoDataFrame, G: Graph, level: str)[source]
Connects nodes within the same level using Kruskal’s algorithm
- get_graph_html(G: Graph, filepath: str)[source]
Saves the graph as an HTML file with a map visualization
- save_graph_to_geojson(G: Graph, filepath: str | None = None)[source]
Saves the graph as a GeoJSON file or returns it as a GeoDataFrame
- model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}
A dictionary of computed field names and their corresponding ComputedFieldInfo objects.