Basic interfaces for graph.