The Dirac operator of a graph