create bull graph
This commit is contained in:
parent
228220e08b
commit
53f2d0708b
2
.gitignore
vendored
2
.gitignore
vendored
@ -128,4 +128,4 @@ dmypy.json
|
||||
|
||||
# Pyre type checker
|
||||
.pyre/
|
||||
|
||||
.idea/
|
||||
|
14
generate-bull-graph.py
Normal file
14
generate-bull-graph.py
Normal file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from igraph import *
|
||||
|
||||
|
||||
def generate_graph():
|
||||
g = Graph()
|
||||
g.add_vertices(5)
|
||||
g.add_edges([(0, 1), (1, 2), (2, 3), (1, 3), (3, 4)])
|
||||
plot(g)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
generate_graph()
|
2
requirements.txt
Normal file
2
requirements.txt
Normal file
@ -0,0 +1,2 @@
|
||||
python-igraph
|
||||
cairocffi
|
Loading…
Reference in New Issue
Block a user