Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Task
base: Graph, GraphSetTaskBase
gm: GMTask
key functions in graphset.base.py
key functions in graphset.gm.py
Generator
graphset.base.py
class
graphset.gm.py
the function _create_instance() construct gmtask from nx_graphs with aff_mat
Solver
To match the requestment of evaluation and test, hard solutions are added through hungarian(nummpy) affer the soft solutions are given by solvers.
Wrapper
The internal structure of the .txt file$\cdots$ "$\cdots$ "$\cdots$ "$\cdots$ "$\cdots$ "$\cdots$ "$\cdots$ "
“ edge_index_for_graph1 src1 tgt1 src2 tgt2
“ edge_index_for_graph2 src1 tgt1 src2 tgt2
“ node_feature_for_graph1 feat1;feat2;
“ node_feature_for_graph2 feat1;feat2;
“ edge_feature_for_graph1 feat1;feat2;
“ edge_feature_for_graph2 feat1;feat2;
" association_graph_label label1 label2
The above is in the same line and feat is joined by " "space
Testdata
gm.task
30 nodes , 4-dim node-feat, 4-dim edge-feat for graph1, keep_ratio=0.5
30 nodes , 4-dim node-feat, 4-dim edge-feat for graph1, keep_ratio=0.5
30 nodes , 4-dim node-feat, 4-dim edge-feat
30 nodes , 4-dim node-feat, 4-dim edge-feat
10 nodes, 4-dim node-feat, 4-dim edge-feat
10 nodes, 4-dim node-feat, 4-dim edge-feat
gm.wrapper
4 nodes ,36-dim node-feat, 36-dim edge-feat
4 nodes ,36-dim node-feat, 36-dim edge-feat