Data types, visualization, and basic functions for graphs