@@ -121,34 +121,38 @@ Look at <https://networkx.org/documentation/stable/reference/generated/networkx.
121
121
122
122
The default settings for the graph visualization in the various sizes (from ` graph_visualizer.py ` ):
123
123
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
134
135
}
135
136
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 }
140
141
141
- medium_graph_settings: {
142
+ medium_graph_settings = {
142
143
" node_size" : 30 ,
143
- "with_labels" : true ,
144
+ " with_labels" : False ,
144
145
" alpha" : 0.4 ,
146
+ " fig_size" : (20 , 20 ),
145
147
}
146
148
147
149
large_graph_settings = {
148
150
" node_size" : 20 ,
149
- "with_labels" : true ,
151
+ " with_labels" : False ,
150
152
" alpha" : 0.2 ,
153
+ " fig_size" : (25 , 25 ),
151
154
}
155
+
152
156
```
153
157
154
158
### Custom JSON Configuration
0 commit comments