Skip to content

Commit 2f49ed2

Browse files
authored
Update README.md
1 parent 75c8196 commit 2f49ed2

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

README.md

+21-17
Original file line numberDiff line numberDiff line change
@@ -121,34 +121,38 @@ Look at <https://networkx.org/documentation/stable/reference/generated/networkx.
121121

122122
The default settings for the graph visualization in the various sizes (from `graph_visualizer.py`):
123123

124-
```json
125-
base_graph_settings: {
126-
"node_size": 50, // the size of the node
127-
"width": 0.2, // the width of the edge between nodes
128-
"edge_color": "black", // the color of the edge between nodes
129-
"linewidths": 0, // the stroke width of the node border
130-
"with_labels": false, // whether to show the node labels
131-
"font_size": 10, // the size of the node labels
132-
"cmap": "tab20b", // the color map to use for the nodes. Look it up.
133-
"fig_size": [10,10], // the dimensions of the plot. 10x10 = 1000x1000 pixels
124+
```python
125+
# Default settings for the graph visualization
126+
base_graph_settings = {
127+
"node_size": 50, # the size of the node
128+
"width": 0.2, # the width of the edge between nodes
129+
"edge_color": "black", # the color of the edge between nodes
130+
"linewidths": 0, # the stroke width of the node border
131+
"with_labels": False, # whether to show the node labels
132+
"font_size": 10, # the size of the node labels
133+
"cmap": "tab20b", # the color map to use for coloring nodes
134+
"fig_size": (10, 10), # the size of the figure
134135
}
135136

136-
small_graph_settings: {
137-
"with_labels": true,
138-
"alpha": 0.8,
139-
}
137+
# Sized-based settings for small, medium, and large graphs
138+
small_graph_settings = {
139+
"with_labels": False,
140+
"alpha": 0.8}
140141

141-
medium_graph_settings: {
142+
medium_graph_settings = {
142143
"node_size": 30,
143-
"with_labels": true,
144+
"with_labels": False,
144145
"alpha": 0.4,
146+
"fig_size": (20, 20),
145147
}
146148

147149
large_graph_settings = {
148150
"node_size": 20,
149-
"with_labels": true,
151+
"with_labels": False,
150152
"alpha": 0.2,
153+
"fig_size": (25, 25),
151154
}
155+
152156
```
153157

154158
### Custom JSON Configuration

0 commit comments

Comments
 (0)