Ternary Graphs