Define the interface for the graph