The main.py script visualizes cmd graphs using the force-graph library.
To view the interactive force graphs:
- Generate graph data by running the script:
This will create
cd sbom_analysis/cmd_graph_visualization python main.pycmd_graph.jsongraph data within theweb/directory.Note: The script assumes that the
linuxsource tree lies next to this repository. You get this layout by following the Getting Started section. - Start a simple HTTP server to serve the index.html
cd web python -m http.server 8000 - Open your web browser and navigate to http://localhost:8000 to interact with the force graphs.
