Context
Recently I've done a project which needs to model using Graph data(not image graph, but network graph). A big problem I encountered is how to slice subgraph into model training. An intuitive idea will be like using sparse matrix to slice out the corresponding neighbors for any given node. But due to the constraint of tf.SparseTensor
, which do not support frequent and also efficient slice operation for now, I choose to use csr_matrix
in scipy
to take care of this part.