graflo.cli.plot_manifest¶
manifest visualization tool for graph databases.
This module provides functionality for visualizing graph database schemas using Graphviz. It includes tools for plotting vertex-to-vertex relationships, vertex fields, and resource mappings. The module supports various visualization options and graph layout customization.
Key Components
- manifestPlotter: Main class for manifest visualization
- plot_manifest: CLI command for manifest visualization
Graphviz Attributes Reference
Example
plot_manifest(manifest_path="manifest.yaml", figure_output_path="manifest.png")
Attributes¶
FIGURES = ('vc2vc', 'vc2fields', 'resources', 'source2vc', 'source2vc_detailed')
module-attribute
¶
Classes¶
Functions:¶
plot_manifest(manifest_path, figure_output_path, prune_low_degree_nodes, group_vc_by_level, color_vc_by_level, include_all_vertices, output_format, output_dpi, only)
¶
Generate visualizations of the graph database manifest.
This command creates multiple visualizations of the manifest: 1. Vertex-to-vertex relationships 2. Vertex fields and their relationships 3. Resource mappings
The visualizations are saved to the specified output path.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
manifest_path
|
Path to the manifest configuration file |
required | |
figure_output_path
|
Path where the visualization will be saved |
required | |
prune_low_degree_nodes
|
Whether to remove nodes with low connectivity from the visualization (default: False) |
required | |
group_vc_by_level
|
Whether to cluster vc2vc by inferred graph level |
required | |
color_vc_by_level
|
Whether to color vc2vc nodes by inferred graph level |
required | |
include_all_vertices
|
Whether to include isolated vertex collections |
required | |
output_format
|
Output image format (svg, pdf, png or dot) |
required | |
output_dpi
|
DPI for raster outputs (png) |
required | |
only
|
Figures to draw; empty draws all of them |
required |
Example
$ uv run plot_manifest -c manifest.yaml -o output_dir
Source code in graflo/cli/plot_manifest.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | |