Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Control Flow Graph (cfg)

Authors: Ian Cordasco
Ashwin Panchapakesan
Copyright: 2013 Ian Cordasco, Ashwin Panchapakesan
license:Apache 2.0

Spurred by a StackOverflow question, I decided to write something that would attempt to generate a Control Flow Graph without creating visuals. This will simply return an object which you can traverse.

I'm still deciding on the API. So far I'm thinking

from cfg import parse

graph = parse('file.py')

graph.walk(0)  # returns an iterator for one path

Or more succinctly

from cfg import walk

walk(file='filename.py', path=2)  # returns an iterator like above

About

Control Flow Graph for python

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages