Two formats are accepted:
1. Graph file format, e.g.:
2. GraphShow() format, e.g.:
GraphShow()
Note that duplicate edges are ignored.