Skip to content

Commit 4d62dac

Browse files
author
Kevin Jedelhauser
committed
Lattice final comments
1 parent 376eaa3 commit 4d62dac

5 files changed

Lines changed: 515 additions & 30 deletions

File tree

lattice/Problems with lattice.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Problems with lattice
2+
3+
1. NODER_PARSER in Z. 247 in renderLineGraph
4+
- fehlt hier ein "global NODER_PARSER"?
5+
- Variable wird nicht übrschrieben?
6+
- [Tutorial: How to use global variables in Python](https://thispointer.com/python-how-to-use-global-variables-in-a-function/)
7+
8+
2. Hierarche von Teilgraphen geht nicht (TM)
9+
networkx subgraph -> nicht so möglich, wie gewünscht (keine abgetrennten Teilgraphen und dazwischen keine Verbindungnen)
10+
- manuelle Position von Clustern bestimmen (graphviz, networtx)
11+
- [Dokueintrag zu `rank` u.ä.. Geht nur in dot (nicht in fdp)](https://graphviz.org/docs/attrs/rank/)
12+
- [Dokueintrag: Wie man sog. Cluster erstellt](https://graphviz.org/Gallery/undirected/fdpclust.html)
13+
- [Zusammenfassung (dot und anderes)](http://www.graphviz.org/pdf/dot.1.pdf)
14+
- [Graphviz in Python, mit Beispielen](https://graphviz.readthedocs.io/en/stable/examples.html)
15+
- [Tutorial: CausalNex plotting (networkx)](https://causalnex.readthedocs.io/en/latest/03_tutorial/03_plotting_tutorial.html)
16+
- [Zusammenfassung von Graphviz](https://pygraphviz.github.io/documentation/stable/pygraphviz.pdf)

lattice/createGraph.gv.pdf

-5 Bytes
Binary file not shown.

lattice/task.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

linegraph/createGraph.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
#!/usr/bin/python3
22

33
import argparse
4-
#import sys
54
import graphviz
65

76
import graphGeneration as g
87

9-
10-
# 3. networkx subgraph -> nicht so, wie gewünscht (keine abgetrennten Teilgraphen und dazwischen keine Verbindungnen)
11-
# TODO manuelle Position von Clustern bestimmen (graphviz)
8+
####################################################################
9+
# How to
10+
#
11+
# Run script with ./createGraph
12+
# Add arguments, such as
13+
# --patterns_path path to the patterns file (default: ../lattice/patterns.lg)
14+
# --lattice_path path to the lattice file (default: ../lattice/lattice.lg)
15+
# --node_parser (default|patternsdebug|patternsrelease)
16+
# how the node labels in the patterns file should be interpreted
17+
####################################################################
1218

1319
d = graphviz.Digraph(filename="../lattice/createGraph.gv", engine='fdp')
1420

@@ -184,6 +190,5 @@ def main():
184190
d.view()
185191

186192

187-
188193
if __name__ == "__main__":
189194
main()

0 commit comments

Comments
 (0)