Пример #1
0
 def draw_a_graph(self):
     helper.draw_graph(args.ip,args.endpoint,args.workbook)
     return None
Пример #2
0
 def draw_a_graph(self):
     global BR
     if BR == "NULL":
         BR = raw_input("Enter BR Ip Address >>\t")
     helper.draw_graph(BR,ENDPOINT)
i = 0
for partition in partitions:
    for node in partition:
        G_all.add_node(node, group =  names[i])        
    i += 1

i = 0
for partition in partitions:
        
    # Subgraph
    FF = G_all.subgraph(partition)
    
    #Name it and Draw it
    FF.name = "FF_%s " % names[i]
    hp.draw_graph(FF)
    
    for node in partition:
        FF.add_node(node)
        
    ################# Group  Bonding measures ################
    
    FF_bin = hp.to_binary(FF)
    # Density
    # Density is computed on binarized matrix
    FF_bin_density = nx.density(FF)    
    # Transitivity
    FF_bin_transitivity = nx.transitivity(FF)    
    # Reciprocity
    FF_reciprocity = hp.reciprocity(FF)    
    # Weakly connected components
Пример #4
0
 def draw_a_graph(self):
     global BR
     if BR == "NULL":
         BR = raw_input("Enter BR Ip Address >>\t")
     helper.draw_graph(BR, ENDPOINT)