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

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - semcod/code2graph: Semantic code graph and topology models for static analysis

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
.cursor/rules
.cursor/rules
 
 
.githooks
.githooks
 
 
.github
.github
 
 
.governance
.governance
 
 
.subactor
.subactor
 
 
code2graph
code2graph
 
 
project
project
 
 
scripts
scripts
 
 
tests
tests
 
 
.aider.conf.yml
.aider.conf.yml
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
GEMINI.md
GEMINI.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
TODO.md
TODO.md
 
 
VERSION
VERSION
 
 
project.bat
project.bat
 
 
project.sh
project.sh
 
 
pyproject.toml
pyproject.toml
 
 
wellmanifest_governance.py
wellmanifest_governance.py
 
 
worktree-guard.yaml
worktree-guard.yaml
 
 

Repository files navigation

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

About

Semantic code graph and topology models for static analysis

semcod.github.io/code2graph/

Topics

astcall-graphcode-analysisgraphpythonsemcodstatic-analysis

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

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.