import random


def create_random_graph(nodes):
    """ Creates a random (directed) graph with the given number of nodes """
    graph = []

    for i in range(0, nodes):
        graph.append([])
        for j in range(0, nodes):
            rand = random.randint(1, 100)
            if rand % 2 == 0 and i != j:
                graph[i].append(rand)
            else:
                graph[i].append(-1)

    return graph