Example #1
0
def parseGraph(fileName):
    try:
        Message("\n* Parsing graph file: " + fileName)
        return processGraphFile(fileName)
    except IOError:
        print "*** ERROR: Could not open " + fileName + ". Aborting. (Run with -? for help) ***"
        print " "
        sys.exit(2)
Example #2
0
def LoadGraph(fileName):
    try:
        return processGraphFile(fileName)
    except IOError:
        sys.exit(2)