async def addVertices(request):
    logger.debug('Adding Vertices')
    client = request.app['arango']
    db = client.db(request.match_info['db_name'], username='root', password=os.environ['MULTINET_ROOT_PASSWORD'])
    graph = db.graph(request.match_info['graph_name'])
    name = request.match_info['name']
    collection = (graph.vertex_collection(name) if graph.has_vertex_collection(name) else graph.create_vertex_collection(name))
    reader = (await request.multipart())
    import_file = (await reader.next())
    logger.info(import_file.filename)
    filedata = (await import_file.text())
    fileschema = [key.strip('"') for key in filedata.splitlines()[0].split(',')]
    logger.info(fileschema)
    filelines = filedata.splitlines()[1:]
    for line in filelines:
        values = [value.strip('"') for value in line.split(',')]
        doc = {key: value for (key, value) in zip(fileschema, values)}
        try:
            collection.insert(doc)
        except Exception as e:
            logger.info(e)
    return web.Response(text=collection.name)
async def addVertices(request):
    logger.debug('Adding Vertices')
    client = request.app['arango']
    db = client.db(request.match_info['db_name'], username='root', password=os.environ['MULTINET_ROOT_PASSWORD'])
    graph = db.graph(request.match_info['graph_name'])
    name = request.match_info['name']
    collection = (graph.vertex_collection(name) if graph.has_vertex_collection(name) else graph.create_vertex_collection(name))
    reader = (await request.multipart())
    import_file = (await reader.next())
    logger.info(import_file.filename)
    filedata = (await import_file.text())
    fileschema = [key.strip('"') for key in filedata.splitlines()[0].split(',')]
    logger.info(fileschema)
    filelines = filedata.splitlines()[1:]
    for line in filelines:
        values = [value.strip('"') for value in line.split(',')]
        doc = {key: value for (key, value) in zip(fileschema, values)}
        try:
            collection.insert(doc)
        except Exception as e:
            logger.info(e)
    return web.Response(text=collection.name)