xFS-bots 0.0.7__tar.gz → 0.0.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. {xfs_bots-0.0.7/xFS_bots.egg-info → xfs_bots-0.0.8}/PKG-INFO +1 -1
  2. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/pyproject.toml +1 -1
  3. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/setup.py +1 -1
  4. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/dag_gen.py +52 -3
  5. {xfs_bots-0.0.7 → xfs_bots-0.0.8/xFS_bots.egg-info}/PKG-INFO +1 -1
  6. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/LICENSE.txt +0 -0
  7. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/README.md +0 -0
  8. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/setup.cfg +0 -0
  9. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/__init__.py +0 -0
  10. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/__init__.py +0 -0
  11. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/_mg_sample.py +0 -0
  12. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/action_table.py +0 -0
  13. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/agent_database.py +0 -0
  14. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/analog_graph.py +0 -0
  15. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/analog_schemes.py +0 -0
  16. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/analog_schemes_aux.py +0 -0
  17. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/base_node.py +0 -0
  18. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/bfs.py +0 -0
  19. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/community.py +0 -0
  20. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/controverter.py +0 -0
  21. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/cyclical_navigator.py +0 -0
  22. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/dependency_seq.py +0 -0
  23. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/dfs.py +0 -0
  24. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/dir_imp_path.py +0 -0
  25. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/eb_graph_navigator.py +0 -0
  26. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/expr_tree.py +0 -0
  27. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/game_table.py +0 -0
  28. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/gcs.py +0 -0
  29. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/graph_gen.py +0 -0
  30. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/hg_obj_path.py +0 -0
  31. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/hg_obj_path_op.py +0 -0
  32. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/hypergraph.py +0 -0
  33. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/jamming_graph.py +0 -0
  34. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/lattice_graph_gen.py +0 -0
  35. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/micrograph.py +0 -0
  36. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/modular_graph.py +0 -0
  37. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/node_navigator_handler.py +0 -0
  38. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/node_path.py +0 -0
  39. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/node_priority_function.py +0 -0
  40. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/node_to_cycle.py +0 -0
  41. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/path_induction.py +0 -0
  42. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/pswap_graph.py +0 -0
  43. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/radial_subgraph.py +0 -0
  44. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/reactive_simple_graph_rules.py +0 -0
  45. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/shortest_paths.py +0 -0
  46. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/shortest_paths_approx.py +0 -0
  47. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/shortest_paths_type_st.py +0 -0
  48. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/spanning_tree.py +0 -0
  49. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/sparse_graph_gen.py +0 -0
  50. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_models/tree_gen.py +0 -0
  51. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/__init__.py +0 -0
  52. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/bkb.py +0 -0
  53. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/bkb_ext.py +0 -0
  54. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/cb.py +0 -0
  55. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/cb_ext.py +0 -0
  56. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/drb.py +0 -0
  57. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/drb_ext.py +0 -0
  58. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/easy_gen.py +0 -0
  59. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/easy_gen_default_vars.py +0 -0
  60. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/efb.py +0 -0
  61. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/efb_ext.py +0 -0
  62. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/hfb.py +0 -0
  63. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/hfb_ext.py +0 -0
  64. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/hte.py +0 -0
  65. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/hte_ext.py +0 -0
  66. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/ib.py +0 -0
  67. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/ib_ext.py +0 -0
  68. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/mkb.py +0 -0
  69. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/mkb_ext.py +0 -0
  70. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/mmb.py +0 -0
  71. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/mmb_ext.py +0 -0
  72. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/pdib.py +0 -0
  73. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/pdib_ext.py +0 -0
  74. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/pib.py +0 -0
  75. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/pib_ext.py +0 -0
  76. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/ptb.py +0 -0
  77. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/ptb_ext.py +0 -0
  78. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/rnb.py +0 -0
  79. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/rnb_ext.py +0 -0
  80. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/sb.py +0 -0
  81. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/sb_ext.py +0 -0
  82. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/sim_solution_search.py +0 -0
  83. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/snb.py +0 -0
  84. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/snb_ext.py +0 -0
  85. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/tftmb.py +0 -0
  86. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/tftmb_ext.py +0 -0
  87. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/tsb.py +0 -0
  88. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/tsb_ext.py +0 -0
  89. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/vtb.py +0 -0
  90. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/graph_problems/vtb_ext.py +0 -0
  91. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/__init__.py +0 -0
  92. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/agent_23.py +0 -0
  93. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/bool_rules.py +0 -0
  94. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/bull_graph.py +0 -0
  95. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/ce_agent.py +0 -0
  96. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/ce_net.py +0 -0
  97. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/cee_map.py +0 -0
  98. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/cnf_mask.py +0 -0
  99. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/cng.py +0 -0
  100. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/controverter_graph.py +0 -0
  101. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/default_graph_introproc.py +0 -0
  102. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/dual_obj.py +0 -0
  103. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/gl_expr_table.py +0 -0
  104. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/graph_introspector.py +0 -0
  105. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/gt_agent.py +0 -0
  106. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/hmm_agent.py +0 -0
  107. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/hscript_graph.py +0 -0
  108. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/hte_analog_induction.py +0 -0
  109. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/hte_aux.py +0 -0
  110. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/hte_navigator.py +0 -0
  111. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/levenschtein.py +0 -0
  112. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/middle_agent.py +0 -0
  113. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/middleman_graph.py +0 -0
  114. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/mob_graph.py +0 -0
  115. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/mutable_ce_net.py +0 -0
  116. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/mvec_agent.py +0 -0
  117. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/pd_graph.py +0 -0
  118. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/pd_inadvertency.py +0 -0
  119. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/poison_snt.py +0 -0
  120. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/pt_aux.py +0 -0
  121. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/qstruct.py +0 -0
  122. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/qstruct_aux.py +0 -0
  123. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/reactive_graph_introspector.py +0 -0
  124. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/rstruct.py +0 -0
  125. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/selection_rules.py +0 -0
  126. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/simple_hmm_env.py +0 -0
  127. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/square_nt.py +0 -0
  128. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/static_graph_introspector.py +0 -0
  129. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/strangle_form.py +0 -0
  130. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/strangle_graph.py +0 -0
  131. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/ul_vec_classifier.py +0 -0
  132. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/usg_controller.py +0 -0
  133. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots/quant/vt_graph.py +0 -0
  134. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots.egg-info/SOURCES.txt +0 -0
  135. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots.egg-info/dependency_links.txt +0 -0
  136. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots.egg-info/requires.txt +0 -0
  137. {xfs_bots-0.0.7 → xfs_bots-0.0.8}/xFS_bots.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xFS_bots
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: A suite of offline bots built on top of classical NP-Complete problems. Friendly for cryptographic operations.
5
5
  Home-page: https://github.com/Changissnz/xFS
6
6
  Author: Richard Pham
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xFS_bots"
3
- version = "0.0.7"
3
+ version = "0.0.8"
4
4
  dependencies = [
5
5
  "numpy>=1.22.1",
6
6
  "matplotlib>=3.10.9",
@@ -5,7 +5,7 @@ with open('README.md') as f:
5
5
 
6
6
  setup(
7
7
  name='xFS_bots',
8
- version='0.0.7',
8
+ version='0.0.8',
9
9
  description='A suite of offline bots built on top of classical NP-Complete problems. Friendly for cryptographic operations.',
10
10
  long_description=readme,
11
11
  author='Richard Pham',
@@ -12,10 +12,10 @@ a node `n` cannot be at the same level as `n`.
12
12
 
13
13
  NOTE: the terms `level` and `layer` are interchangeable, and are
14
14
  integers assigned to nodes that signify their minimum distances from
15
- the root node.
15
+ the root node/s.
16
16
 
17
17
  Calculates any variable k' <= k number of paths that have node `n`
18
- of DAG in them.
18
+ of `G` in them.
19
19
  '''
20
20
  class DAGraphContainer:
21
21
 
@@ -186,6 +186,36 @@ class DAGraphContainer:
186
186
  return False
187
187
  return True
188
188
 
189
+ #------------------------------- permuting nodes
190
+
191
+ # TODO: needs to be tested.
192
+ def permute_nodes(self,prg):
193
+
194
+ # case: empty graph
195
+ if len(self.G) == 0: return
196
+
197
+ # calculate the isomap first
198
+ nodes = sorted(self.G.keys())
199
+ nodes2 = prg_seqsort(deepcopy(nodes),prg)
200
+ D = {n:n2 for (n,n2) in zip(nodes,nodes2)}
201
+
202
+ # change the graph
203
+ mg = MicroGraph(self.G)
204
+ mg2 = MicroGraph.isotransform_MG(mg,D)
205
+ G2 = mg2.dg
206
+
207
+ # change the level-to-nodeset map
208
+ l2n_map2 = dict()
209
+
210
+ for k,v in self.l2n_map.items():
211
+ v2 = [D[v_] for v_ in v]
212
+ l2n_map2[k] = set(v2)
213
+
214
+ self.G = G2
215
+ self.G_rev = reverse_graph_edges(self.G)
216
+ self.l2n_map = l2n_map2
217
+ return
218
+
189
219
  """
190
220
  (D)irected (A)cyclic (G)raph Generator.
191
221
  """
@@ -478,5 +508,24 @@ class DAGraphGen(DAGraphContainer):
478
508
  #self.G[l] |= {l2}
479
509
  self.add_edge(l,l2)
480
510
 
511
+ #----------------------------- extra ops:
512
+ #----------------------------- converting to <DAGraphContainer> and permuting nodes
513
+
514
+ def to_DAGraph(self):
515
+ return DAGraphContainer(self.G,self.l2n_map,check_input_graph=False)
516
+
481
517
  def permute_nodes(self):
482
- return -1
518
+ if len(self.G) == 0: return
519
+
520
+ super().permute_nodes(self.prg)
521
+
522
+ # update the leaf variables
523
+ K = sorted(self.l2n_map.keys())
524
+ i0 = K.pop(-1)
525
+ self.leaf_nodes = sorted(self.l2n_map[i0])
526
+
527
+ if len(K) > 0:
528
+ i1 = K.pop(-1)
529
+ self.prev_leaf_nodes = sorted(self.l2n_map[i1])
530
+ else:
531
+ self.prev_leaf_nodes = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xFS_bots
3
- Version: 0.0.7
3
+ Version: 0.0.8
4
4
  Summary: A suite of offline bots built on top of classical NP-Complete problems. Friendly for cryptographic operations.
5
5
  Home-page: https://github.com/Changissnz/xFS
6
6
  Author: Richard Pham
File without changes
File without changes
File without changes
File without changes
File without changes