Network theory  fundementals I.
 9 minsNetworks
Complex system : composed of interconnected parts that as a whole exhibit one or more properties not obvious from the properties of the individul parts
Graphs and networks
Graph : vertices, edges, directed or not, weighted or not
Network : nodes, links, flows, epidemics, growth, rewiring, etc.
The next step from graphs to networks is complex systems which we model with networks!
Graph types
 simple graph: only single connections, no self loops
 multi graph: multiple connections, no self loops
 pseudo graph: self loops allowed
 directed graph: directed links
 undirected graph: undirected links
 weighted graph: weighted links
 unweighted graph: binary links
 bipartite graph: two types of nodes, different are linked
Sotring it on computer can be done in an adjecency matrix (not memory efficient) or in an adjecency list (linked list).
For undirected graphs A is symmetric. Multiplying a position vector with A gives the neighbors of that point.
Sparseness
A network is sparse in the limit if the number of links .
A networks is dense in the limit if the number of links .
In the dense case the average connections per node goes to infinity. ().
Most real networks are sparse. Therefore the probability of two nodes being linked is negligible, goes to 0 in the limit.
Basics of networks
 number of connections per node: , if directed ,
 weighted networks have node strenght: , a node’s strenght is the biggest weight of the edges connecting it to other nodes
 avarage degree: , for directed networks

clustering coefficient: where is the number of links between its neighbors, in the directed case , one can also the the average clustering coeff. of a networks as well
 is the measure of global densitiy of the network, therefore is a local density measure
Pathology
 Cycle: path with same start and end node
 Eulerian path: a path traversing each link exactly onces
 Hamiltonian path: a path visiting eaxh node exactly once

distance : minimum number of steps it takes to reach j from i, in undirected networks this matrix is symmetric and if j cannot be reached from i then

avarage shortest path lenght: and for a given node
 for sparse networks where N is large and is small a good estimate is
 small world property : this always results in a small average shortest path lenght for big system sizes
 diameter:

centrality : where unreachable nodes are not considered in the sum intuitively a node closer to the rest of the network is more central
 betweenness : of a node or link is equal to the number of shortest path passing through a given node or link, if multiple shortest paths are possible between a given pair of nodes then they are given equal weidghts and adding up to one:
Algorithms
 breadth first search
 depth first search
 Dijkstra’s algorithm
PageRank
The importance of a node is affected by the number of inneighbors and the importance of the inneighbors.
Assume an iteraive process, each node distributes its PageRank evenly at each timestep between its neighbors.
Total PageRank of the system is therefore conserved since it is only being redistributed at each timestep. For simplicity one should scale it to 1.
If we intruduce dampening with probability :
Components
A component is an undirected network that corresponds to a maximal set of nodes in which a path exists between any pair of nodes.
Most networks contain a giant component.
A giant component in a network is a subsystem which relative size remains finite in the limit.
Can be generalized to the directed case:
 strongly connected component: is a maximal set of nodes in which a directed path exists between any pair of nodes
 weakly connected component: is a maximal set of nodes in which an undirected path exist between any pair of nodes
Advacned network characteristics
 degree distribution
 for a finite netork with N nodes: where is the number of nodes with degree k
 for an ErdősRényi graph where links are established with probability and not established with probablity for small network size N the degree dstribution is approximately binomial but in the limit it is a Poissondistribution with
 for a finite netork with N nodes: where is the number of nodes with degree k
Scalefree networks
A network is scalefree if the tail of its degree distribution decays as a powerlaw, where is the node degree decay exponent:
It is called scale free because scaling functions are defined as:
and power laws are scaling.
Wealth densitiy is a scaling probability density ( ), this is called the Paretodistribution.
Also there is no typical degree in scalefree networks as a result of being scaling.
Normalizing the scalefree degree distribution:
Therefore is:
As a result:
Scalefreeness implies large hubs in the network.
In physics being scalefree usually occurs at phase transitions at critical points and often suggests divergence. The moments of p(k) are divergent for a scalefree system when .
Most real world networks are scalefree and their node degree decay factor () is below 3 thus is divergent in the limit, therefore the standard deviation is divergent as well!
If is in the range the system behaves ultrasmall world and the scalefree property is relevant.
 assortative network: small degree nodes tend to link to small degree nodes and hubs tend to link to each other
 diasortative network: hubs do not link, they connect to small degree nodes
 neutral network: random
Let denote the conditional probability of finding a node with degree from a node with degree . From the definition of conditional probability:
Where it is easier to count all the nodes denoted with and then dividing by the nodes that all have degrees .
If we divide (the matrix of number of links between degree , node pairs) with the total number of links in the networks beging we can get which obviously sums to one for both degrees:
The meaning of is the probability of finding a node on the end of a link with degree . This is obviously proportional to the number of links from nodes with degree :
For a neutral network we expect which after the normalization of and translates to therefore any significant deviance from this value indicates degree correlations in a networks.
In practice preparing is difficult and computationally expensive so average nearest neighbor degree is calculated instead:
In terms of , .
In case of a neutral network and therefore:
We should remeber that is the normalized which is therefore:
Calculating this parameter is takes variables in memory and less steps than calculating . We can now calculate the covariance of :
Substituting the joint probability in the above equation:
After simplification:
We can simply check this formula by remembering that in a neutral network the probabilities in the parantheses cancel out and there is no covariance between degrees.
The Pearsoncorrelation is defined as the covariance of the parameters diveded by their variances. The variance of and is:
The Pearsoncorrelation is therefore:
If the network is neutral, if it is disassortative otherwise assortative.