GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing semcod.github.io — code2graph

code2graph

Pure domain data models and graph query abstractions for static code analysis, extracted from code2llm.

Overview

code2graph defines standard, language-agnostic data structures to represent:

  • Control Flow & Data Flow: FlowNode, FlowEdge, DataFlow, Mutation
  • Source Code Structure: ModuleInfo, ClassInfo, FunctionInfo
  • Analysis & Health: AnalysisResult, Pattern, CodeSmell
  • Graph Queries: In-memory query API to inspect call chains, entry points, and reachability.

Installation

pip install code2graph

Usage

from code2graph import AnalysisResult, FunctionInfo, FlowEdge

result = AnalysisResult(project_path=".")
func = FunctionInfo(
    name="main",
    qualified_name="app.main",
    file="app.py",
    line=1,
)
result.functions["app.main"] = func

License

Apache-2.0

This site is open source. Improve this page.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.