init dataset for nodes and edges