When I try to create the object of graph and pointer object of Edge it gives me segmentation fault while when I only create the graph object it does not gives me the error b