A tool for visualizing graph problems.
1. Install the library
Installation of Graphviz
$ brew install graphviz
Installation of Wrapper
$ pip install graphviz
2. Initial setting (Settings on lines 63-66)
indexed
indexed | setting |
---|---|
0-indexed | 0 |
1-indexed | 1 |
graph_number
Graph type | graph_numnber |
---|---|
directed graph with weight | 1 |
directed graph without weight | 2 |
undirected graph with weight | 3 |
undirected graph without weight | 4 |
Node
The number of vertex
Edge
The number of edge
setting example
63 indexed = 0
64 graph_number = 2
65 Node = int(input()) # 頂点の数
66 Edge = Node - 1 # 辺の本数
type 1 | type 2 | type 3 | type 4 |
---|---|---|---|
If you have any questions, please use an issue.