Implements basic graph statistics