✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
import osmnx as ox
import networkx as nx
G
= ox.graph_from_place("Kyiv, Ukraine", network_type="drive")dangling_nodes
= [node for node, degree in G.degree() if degree == 1]print(len(dangling_nodes))Що повертає цей код?