Matrix multiplication, paths, triangles & centrality