diff --git a/.gitignore b/.gitignore index 13d1490..927f0b2 100644 --- a/.gitignore +++ b/.gitignore @@ -128,4 +128,4 @@ dmypy.json # Pyre type checker .pyre/ - +.idea/ diff --git a/generate-bull-graph.py b/generate-bull-graph.py new file mode 100644 index 0000000..88b5a2e --- /dev/null +++ b/generate-bull-graph.py @@ -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() diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..ae77f0e --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +python-igraph +cairocffi \ No newline at end of file