Skip to main content

Module parser

Module parser 

Source

Functions§

find_graph_file
Find the graph file in a project directory. Searches: .gid/graph.yml, .gid/graph.yaml, graph.yml, graph.yaml
find_graph_file_walk_up
Find the graph file by walking up from a starting directory. Like git searching for .git/, this walks up the directory tree until it finds a .gid/graph.yml (or reaches the filesystem root).
find_project_root
Find the .gid/ directory by walking up from a starting directory. Returns the parent directory that contains .gid/, not the .gid/ path itself.
load_graph
Load a graph from a YAML file.
save_graph
Save a graph to a YAML file.