Skip to content

Commit c8a0fcf

Browse files
committed
Fix family names in config and update README
1 parent bee6d98 commit c8a0fcf

4 files changed

Lines changed: 15 additions & 14 deletions

File tree

GraphAlgorithmRenderer/Samples/Bridges/config.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
"$type": "GraphAlgorithmRenderer.Config.EdgeFamily, GraphAlgorithmRenderer",
88
"Source": {
99
"$type": "GraphAlgorithmRenderer.Config.EdgeFamily+EdgeEnd, GraphAlgorithmRenderer",
10-
"NodeFamilyName": "",
10+
"NodeFamilyName": "node#0",
1111
"NamesWithTemplates": {
1212
"$type": "System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.String, mscorlib]], mscorlib",
1313
"v": "edges[__e__].from"
1414
}
1515
},
1616
"Target": {
1717
"$type": "GraphAlgorithmRenderer.Config.EdgeFamily+EdgeEnd, GraphAlgorithmRenderer",
18-
"NodeFamilyName": "",
18+
"NodeFamilyName": "node#0",
1919
"NamesWithTemplates": {
2020
"$type": "System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.String, mscorlib]], mscorlib",
2121
"v": "edges[__e__].to"
2222
}
2323
},
24-
"Name": "",
24+
"Name": "edge#0",
2525
"Ranges": {
2626
"$type": "System.Collections.Generic.List`1[[GraphAlgorithmRenderer.Config.IdentifierPartTemplate, GraphAlgorithmRenderer]], mscorlib",
2727
"$values": [
@@ -75,7 +75,7 @@
7575
"$values": [
7676
{
7777
"$type": "GraphAlgorithmRenderer.Config.NodeFamily, GraphAlgorithmRenderer",
78-
"Name": "",
78+
"Name": "node#0",
7979
"Ranges": {
8080
"$type": "System.Collections.Generic.List`1[[GraphAlgorithmRenderer.Config.IdentifierPartTemplate, GraphAlgorithmRenderer]], mscorlib",
8181
"$values": [

GraphAlgorithmRenderer/Samples/DSU/config.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
"$type": "GraphAlgorithmRenderer.Config.EdgeFamily, GraphAlgorithmRenderer",
88
"Source": {
99
"$type": "GraphAlgorithmRenderer.Config.EdgeFamily+EdgeEnd, GraphAlgorithmRenderer",
10-
"NodeFamilyName": "",
10+
"NodeFamilyName": "node#0",
1111
"NamesWithTemplates": {
1212
"$type": "System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.String, mscorlib]], mscorlib",
1313
"v": "__i__"
1414
}
1515
},
1616
"Target": {
1717
"$type": "GraphAlgorithmRenderer.Config.EdgeFamily+EdgeEnd, GraphAlgorithmRenderer",
18-
"NodeFamilyName": "",
18+
"NodeFamilyName": "node#0",
1919
"NamesWithTemplates": {
2020
"$type": "System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.String, mscorlib]], mscorlib",
2121
"v": "p[__i__]"
2222
}
2323
},
24-
"Name": "",
24+
"Name": "edge#0",
2525
"Ranges": {
2626
"$type": "System.Collections.Generic.List`1[[GraphAlgorithmRenderer.Config.IdentifierPartTemplate, GraphAlgorithmRenderer]], mscorlib",
2727
"$values": [
@@ -66,7 +66,7 @@
6666
"$values": [
6767
{
6868
"$type": "GraphAlgorithmRenderer.Config.NodeFamily, GraphAlgorithmRenderer",
69-
"Name": "",
69+
"Name": "node#0",
7070
"Ranges": {
7171
"$type": "System.Collections.Generic.List`1[[GraphAlgorithmRenderer.Config.IdentifierPartTemplate, GraphAlgorithmRenderer]], mscorlib",
7272
"$values": [

GraphAlgorithmRenderer/Samples/Dinic/config.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
"$type": "GraphAlgorithmRenderer.Config.EdgeFamily, GraphAlgorithmRenderer",
88
"Source": {
99
"$type": "GraphAlgorithmRenderer.Config.EdgeFamily+EdgeEnd, GraphAlgorithmRenderer",
10-
"NodeFamilyName": "",
10+
"NodeFamilyName": "node#0",
1111
"NamesWithTemplates": {
1212
"$type": "System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.String, mscorlib]], mscorlib",
1313
"v": "edges[__e__].from"
1414
}
1515
},
1616
"Target": {
1717
"$type": "GraphAlgorithmRenderer.Config.EdgeFamily+EdgeEnd, GraphAlgorithmRenderer",
18-
"NodeFamilyName": "",
18+
"NodeFamilyName": "node#0",
1919
"NamesWithTemplates": {
2020
"$type": "System.Collections.Generic.Dictionary`2[[System.String, mscorlib],[System.String, mscorlib]], mscorlib",
2121
"v": "edges[__e__].to"
2222
}
2323
},
24-
"Name": "",
24+
"Name": "edge#0",
2525
"Ranges": {
2626
"$type": "System.Collections.Generic.List`1[[GraphAlgorithmRenderer.Config.IdentifierPartTemplate, GraphAlgorithmRenderer]], mscorlib",
2727
"$values": [
@@ -184,7 +184,7 @@
184184
"$values": [
185185
{
186186
"$type": "GraphAlgorithmRenderer.Config.NodeFamily, GraphAlgorithmRenderer",
187-
"Name": "",
187+
"Name": "node#0",
188188
"Ranges": {
189189
"$type": "System.Collections.Generic.List`1[[GraphAlgorithmRenderer.Config.IdentifierPartTemplate, GraphAlgorithmRenderer]], mscorlib",
190190
"$values": [

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ Now we will create a config. We will have one node family with the index `v` wi
267267
17. Now we have the following node properties.![1558364631346](readme-images/node_properties.png)
268268
18. Edges, visited by DFS...![1558284915478](readme-images/1558284915478.png)
269269
19. Current edge... ![1558284941427](readme-images/1558284941427.png)
270-
20. Now we can the colorized graph! ![1558365514928](readme-images/colorized_graph.png)
270+
20. Now we can see the colorized graph.![1558365514928](readme-images/colorized_graph.png)
271271
21. Finally, we can serialize the generated config in JSON, save it somewhere, and deserialize it next time to avoid creating this config from the beginning.
272272
273273
![1558284854490](readme-images/1558284854490.png)
@@ -283,5 +283,6 @@ Now we will create a config. We will have one node family with the index `v` wi
283283
5. Keep in mind that it takes a second to process 100-200 expressions.
284284
6. The Standard Template Library functions and class methods are not supported in the expressions (`operator[]` being a notable exception). It means that you cannot render elements in `std::unordered_set` or use `std::find`. Try to use `std::vector` or arrays instead. You can use custom functions, but note that it works slower than accessing elements of `std::vector`.
285285
7. Sometimes text boxes in Graph Visualization settings seem to be blocked and a text cannot be entered or it appears somewhere else, for example in the file with the code. You can try to close all other windows including the source file (it doesn't mean closing the Solution or stopping the debugger). We would be grateful if you help us to find out how to reproduce this bug.
286-
8. If the begin template, end template or edge source or target cannot be identified, the message box with the error will appear. All other invalid expressions are written to the log and ignored by default. To access the log open the *Output window* and set *Show output from* to *Graph Visualization*. The log is cleared before every new iteration.
286+
8. If you change a node family name in the UI, it will not change in the existing edge family windows. You can change it directly in the JSON config and deserialize it.
287+
9. If the begin template, end template or edge source or target cannot be identified, the message box with the error will appear. All other invalid expressions are written to the log and ignored by default. To access the log open the *Output window* and set *Show output from* to *Graph Visualization*. The log is cleared before every new iteration.
287288
![1558294468910](readme-images/1558294468910.png)

0 commit comments

Comments
 (0)