def get_vertex_ids_of_neighbors(g, vertex_ids_of_queries):
    """ Return first-order neighbors for the provided vertex_ids. Result
    will include the input vertex_ids in addition to the neighbors.

    Args:
        @param g
        @type g: igraph.Graph object
        @param vertex_ids_of_queries:
        @type vertex_ids_of_queries: list of integers

    Returns:
        vertex_ids_of_neighbors (set of integers)

    """
    # Return neighborhood around each query
    list_of_lists_of_neighbors = g.neighborhood(vertex_ids_of_queries)

    # Convert the list of lists to a set
    vertex_ids_of_neighbors = set([vertex_id for sublist in list_of_lists_of_neighbors for vertex_id in sublist])

    return vertex_ids_of_neighbors