bugfix and add unsafe parameter for Graph constructor