Begin of the definition of unweighted graphs.