python - Graph classification - Stack Overflow
https://stackoverflow.com/questions/6079980721.03.2020 · I do graph classification, read an edgelist file, split to train and test and check if the train set is a connected graph by using networkx: import networkx as nx trainGraph = nx.read_edgelist ('trainEdgelist.txt', create_using=nx.Graph (), nodetype=int) nx.is_connected (trainGraph) If I want to use 10-fold cross validation and use something like: