#! /usr/bin/env python

import network
import network_agent

def main():

    # creating n number of agents
    n = 20

    # probablity for edge creation [0, 1]
    p = 0.1

    # Create Erdos-Renyi graph
    my_network = network.DirectedFastGNPRandomGraph(n, p)
    print(my_network.G.edges()) # edge list
    print(my_network.G.edges_iter())
    my_network.show_graph()
    
    network_of_agents = network_agent.NetworkAgent()
    network_of_agents.create_multidigraph_of_agents_from_edge_list(n, my_network.G.edges_iter())


if __name__ == "__main__":
    print("Running")
    main()

@@ -522,16 +522,173 @@
 ter())%0A%0A
+    # make agents aware of predecessors%0A    # predecessors are agents who influence the current agent%0A    network_of_agents.set_predecessors_for_each_node()%0A
 %0Aif __na

call from main to assign precessors to each agent in network of agents