add directed-graph and undirected-graph constructors