The IDA Pro Book - Chapter 9 Examples
Source for the simple cross references example:
simple_flows.c
Binary for the simple cross references example:
simple_flows.exe
Source for the simple graphing example:
call_tree.c
Binary for the simple graphing example:
call_tree
Statically linked binary for the simple graphing example:
call_tree_static