nodes and edges of graph