Made a separate graph_factory module, since graph_composites will need that
Changed the graph attribute ne to a method get_num_edges(), need to do this for composite graph type. Breaks old API.