aggregating multiple shortest-path networks I have a dataset of 500 observations (firms) and for each firm I know how they are directly and indirectly related based on some characteristics. I can therefore construct a network of connectivity across all stocks. For each firm I compute the shortest path to all other firms. I end up with 500 networks of degree of separation. For instance firm A is directly related to B and C and indirectly connected to D and E through B. Firm B and C belong to the first set of degree separation and D and E to the second degree of separation. 
How can I aggregate all these 500 networks into one? Is there a mathematical / statistical methodology where I can aggregate all these networks? For instance, I would construct a network with a node (say A) representing a group of firms that are all directly connected and this node A is connected to another node, B. Firms in node B are also firms that directly connected but what connects B and A is that firms in A and B are often connected at the second degree of separation. 
 A: If your program is self consistent in how it assigns neighbor degrees (e.g. A is a first degree neighbor of B and B is a first degree neighbor of A) you can simply represent your network as an adjacency matrix of first degree neighbors. E.g. if you have three nodes, A, B & C, and A is a first degree neighbor of B and a second degree neighbor of C, this would imply the adjacency matrix below:
  A B C
A 0 1 0
B 1 0 1
C 0 1 0

If this isn't the case an ad-hoc approach I might explore would be to assign some weight based on the neighbor degree (like the reciprocal of the degree) and then make a weighted adjacency network. 
A: It seems to me like you are trying to identify clusters in the network of 500 firms.  If this is the case, I would first look at the clustering coefficient.  This is more like a summary of the connectedness. To obtain actual clusters, you want to do "community detection".  A common approach is to use a partitioning algorithm to maximize the modularity of the network.  One such algorithm is described here.   
