Random guided graph network
I am trying to create a random guided network in Python using NetworkX library. I have two separate files: (1) contains the list of buildings in a city along with their coordinates and (2) contains the list of stations in that city along with their coordinates. The buildings and stations are spread all over the city. I want to create a random network for a given number of buildings in such a way that each edge in the network gets signals from at least one station (or each edge has at least one station close to it). One station can be close to more than one edge, e.g., in the middle of two edges. I am not sure how can I generate a network of randomly selected buildings where the aforementioned conditions meet. The following figure is an example of the type of the desired network.
Comments
Post a Comment