Represent number of directed edges for both directed and undirected graphs.