Many papers that describe protocols for wireless sensor networks mention that the network can be represented as a graph such as unit disk graph. nodes are vertices of the graph and links between nodes are edges of the graph. I need to know if all nodes in the network know this graph in the beginning of the connection? what is confusing for me , from my knowledge i know that node know information about its direct neighbors only. how can i assume in my simulation that network with thousand of sensors , all of them have the graph that represent the whole network???
so if what i think is correct, i.e. the graph is too big and need many communication to be constructed in the beginning of the connection that mean it can't be known to all nodes in the network, what is the benefit that papers always mention that the network represented as graph????