iduedu.UrbanGraphChanges¶
- class iduedu.UrbanGraphChanges(edges_gdf=None, nodes_gdf=None, edges_to_delete=None, is_multigraph=False, is_directed=False)[source]¶
Set of table changes that can be applied to an
UrbanGraph.The class is used as an intermediate result when projecting objects onto a graph. It stores new nodes, new edges and edge keys that should be removed from the source graph before split edge segments are appended.
- Parameters:
edges_gdf (
GeoDataFrame|None) – New graph edges.nodes_gdf (
GeoDataFrame|None) – New graph nodes.edges_to_delete (
DataFrame|None) – Edge-key table for edges that should be removed.is_multigraph (
bool) – Must matchUrbanGraph.is_multigraph.is_directed (
bool) – Whether edge keys should be interpreted as directedu -> vkeys.
- Raises:
TypeError – If change tables use unsupported types.
ValueError – If change keys or geometries are invalid.