import json


def read_instance(filename):
    """Function to read an instance file from test data

    Args:
        filename (str): Path to file for instance
    """

    with open(filename) as f:
        data = json.load(f)
        network_data = data["graph"]
        num_vehicles = data["numVehicles"]
    return network_data, num_vehicles