2024-01-24 17:39:05 -05:00
|
|
|
from DistrictHeatingNetworkCreator import DistrictHeatingNetworkCreator
|
|
|
|
|
|
|
|
# Initialize the class
|
|
|
|
network_creator = DistrictHeatingNetworkCreator(
|
|
|
|
'./input_files/buildings.geojson',
|
|
|
|
'./input_files/roads/geobase_mtl.shp'
|
|
|
|
)
|
|
|
|
|
|
|
|
# Create the network graph
|
|
|
|
network_graph = network_creator.run()
|
|
|
|
|
|
|
|
# Plot the network graph (optional)
|
2024-02-02 17:22:35 -05:00
|
|
|
for node, attrs in network_graph.nodes(data=True):
|
|
|
|
print(f"Node: {node}, Attributes: {attrs}")
|