The study of how objects(entities) connect to each other and the properties of their connection.
Possible understanding: a relationship istance.
\(G=\langle V, E\rangle\) where \(E\subseteq V \times V\)
\(|V|=n\), \(|E|=m\), density is \(|E|/|V|^2\)
vertex v is adjacent to u if \((u, v)\in E;\) \((v, v)\not\in E.\)
neigh. of v, N(v): the set of adjacent vertices; \(deg(v)=|N(v)|\)
A path \(u\rightarrow v\) is a sequence of edges \(\langle (u, c_1), (c_1, c_2), \dots (c_k, v)\rangle\)
its lenght (k+1) is the cardinatility of the path.
Two vertices are connected if \(\exists\) a path betw. them.
A graph is connected if all its vertices are.
Distance is the lenght of the (possibly non-unique) shortest path connecting them, \(\infty\) otherwise.
The diameter of a graph is the maximum distance between any two pairs
Average distances are also important
[…] the first world-scale social-network graph-distance computations, using the entire Facebook network of active users (~721 million users, ~69 billion friendship links). The average distance […] is 4.74, corresponding to 3.74 intermediaries or “degrees of separation.”
\(G=\langle V, E, w\rangle\) where \(w: E\rightarrow \mathbb{R}\)
Path lenght: sum of the weights of the arcs.
\(G=\langle V, E\rangle\) where \(v\in V\) are nodes and \(\langle u, v\rangle\in E\) are arcs. \(w: E\rightarrow \mathbb{R}\)
Out-neigh. and In-neigh.
\(G=\langle V, E, D\rangle\) where \(V\) are nodes D are dimensions/layers and \(\langle u, v, d\rangle\in E\) are arcs
Polisemy:
The Python 2 code can be cloned from Github
From the same author, a summary of the main concepts
modeling tip: it is ok to have a special node representing “nature”
modeling tip: look for invariants
source, connect and sink.
study degree distribution
find properties of a network in terms of the degree organization