Skip to content

Random Graphs

avivDan edited this page Jan 13, 2021 · 1 revision

Some graphs to show

fully connected graph with 10 nodes:

Graph fully connected with 10 nodes

// how to make it work 
//uncomment the create_random_graph def and add nodes=10 attribute
//should look like this 

if __name__ == '__main__':
    # check_runtime()
    # networkX()
    # build_bar_chart()
    create_random_graph(nodes=10)
    print("wow") 

Suppose you wand a lot of nodes but less edges?, here's how

//comment out the function like last one and add attribute of Edges
if __name__ == '__main__':
    # check_runtime()
    # networkX()
    # build_bar_chart()
    create_random_graph(nodes=20, Edges=30)
    print("wow")

It will look like this

Graph with 20 nodes and 30 edges randomly


Here another random graph

graph




My Laptop have the specs of:

 i5 6200u 
 integrated Intel graphics card - nothing 
 16 GB of ram 2133 MHz 
 and it's mat black 

A0 graph from last assignment A0 graph from last assignment


readme


Clone this wiki locally