get_girth function

Get the graph girth