nodes and links for graph