How to create graph from my files

Can I read some files contain the nodes, features and edges and create a graph as the input for the model ?
There are three files :
1.features.csv
format:node_id, feature_id, value

2.edges.csv
format:from_id, to_id

3.target.csv(target represent the class of node)
format:node_id, target

What’s your file format?

I have three files

1.features.csv
format:node_id, feature_id, value

2.edges.csv
format:from_id, to_id

3.target.csv(target represent the class of node)
format:node_id, target

I didn’t find the introduction about graph creation from files in DGL documentation, could you please give me some suggestion? Thanks~

import dgl
g = dgl.DGLGraph()
g.add_nodes(10) # Say if you have 10 nodes
g.add_edges(src_list, dst_list) # This is your list of from_id and list of to_id
g.ndata['label'] = target # target should be a pytorch tensor or mxnet ndarray
g.ndata['feature_id'] = feature_id
g.ndata['value'] = value

Does this help?

thanks,let me have a try~~