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

pathfrequency.py 430 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. """
  4. Created on Wed Mar 20 10:12:15 2019
  5. inferring a graph grom path frequency.
  6. @author: ljia
  7. """
  8. def SISF(K, v):
  9. if output:
  10. return output
  11. else:
  12. return 'no solution'
  13. def SISF_M(K, v):
  14. return output
  15. def GIPF_tree(K, v):
  16. if K == 1:
  17. pass
  18. if G:
  19. return G
  20. else:
  21. return 'no solution'
  22. def GIPF_M(K, v):
  23. return G

A Python package for graph kernels, graph edit distances and graph pre-image problem.