directed/undirected graphs init