create bull graph

This commit is contained in:
Torma Kristóf 2020-09-18 13:20:28 +02:00
parent 228220e08b
commit 53f2d0708b
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
3 changed files with 17 additions and 1 deletions

2
.gitignore vendored
View File

@ -128,4 +128,4 @@ dmypy.json
# Pyre type checker
.pyre/
.idea/

14
generate-bull-graph.py Normal file
View 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
View File

@ -0,0 +1,2 @@
python-igraph
cairocffi