You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.2KB

123456789101112131415161718192021222324252627282930
  1. The "src" folder is the source code of SAMI paper which has seen some minor changes
  2. from the original received version.
  3. The "codes" folder is the folder containing the following files:
  4. 1.adjlisttext_tonxgraph.py: gets an adj. list as input file and gives out the visualized
  5. graph
  6. 2.mat_tonxgraph.py: gets a .mat file as input file and gives out the visualized graph
  7. 3.mae.py: computes mae of two graphs given their .mat adj matrix file
  8. For using the source code you must pay attention to two files: "RunExpSrv8s" and
  9. "MissingNodes_S8b". The first one is the function which sets up the files and
  10. calls the main function i.e. "MissingNodes_S8b".
  11. For having your own dataset run on this code you should know the below variables:
  12. *RUNEXPSRV_8S.m
  13. 1. num_missing_nodes_arr: number of randomly removed nodes on each iteration
  14. 2. ds_*: array of node numbers of your input arr
  15. 3. ds_str: dataset path as a string
  16. 4. root_dir
  17. 5. file_prefix: file name prefix of the input files
  18. *MISSINGNODES_S8B
  19. 1. k: filename postfix for saving
  20. 2. clusters_out: true and predicted graph saved as .mat file
  21. 3. graphs_out: 4 graphs including {original, predicted, predicted permuted,
  22. original permuted} as .mat file
  23. *grid dataset is run on the src code as an example