Technology, Graph Theory, Tidygraph, Graph Analytics, Data Visualization.
to_local_neighborhood() algorithm, we’ll run the code below: Retrieve the starting node ID for each distributor because to_local_neighborhood() takes it as an argument. Write a simple for loop to iterate through the vector of IDs so we can analyze each distributor. Activate the node data frame