CFGraph

class understand.CFGraph

Bases: object

A control flow graph

Control flow graphs are returned from applicable entities with understand.Ent.control_flow_graph(). The graph contains control flow nodes which can be retrieved with nodes. The edges out of each node are given with the children method. Some nodes may be unreachable from the start node.

Methods Summary

is_trivial

Return True if the graph is trivial.

nodes

Return a list of all nodes in the graph

start

Return the start node of the graph.

Methods Documentation

is_trivial()

Return True if the graph is trivial.

Return type:

bool

Returns:

True if the graph is trivial

nodes()

Return a list of all nodes in the graph

Return type:

list[understand.CFNode]

Returns:

all nodes in the graph

start()

Return the start node of the graph.

Return type:

understand.CFNode

Returns:

the start node