Simple Graph Programs in C