is_graph_simple function

Is the graph a simple graph?