Initial p-graph commit

Signed-off-by: Matt Schaub <matt.schaub1337@gmail.com>