Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bterwijn/memory_graph
/ functions
Functions
477 in github.com/bterwijn/memory_graph
⨍
Functions
477
◇
Types & classes
67
↓ 1 callers
Function
available_seats
(capacity, reserved)
src/exception_example.py:1
↓ 1 callers
Function
bin_search
(view, value)
src/bin_search.py:23
↓ 1 callers
Function
bin_search
(view, value)
images/bin_search.py:18
↓ 1 callers
Function
binary
(value: int)
src/binary_convert.py:4
↓ 1 callers
Function
binary
(value: int)
images/binary.py:5
↓ 1 callers
Function
breadth_first
(graph, begin, end)
src/breadth_first.py:12
↓ 1 callers
Function
breadth_first_paths
(begin_node, end_name)
src/graph_to_nodes.py:50
↓ 1 callers
Function
bsl
Shows the graph of locals() and blocks.
memory_graph/__init__.py:121
↓ 1 callers
Function
bss
Shows the graph of mg.stack() and blocks.
memory_graph/__init__.py:128
↓ 1 callers
Function
bubble_sort
(data)
src/bubble_sort.py:26
↓ 1 callers
Function
bubble_sort_section
(data, begini, endi)
src/bubble_sort.py:12
↓ 1 callers
Function
build_graph
Builds the graph of 'nodes' in 'graphviz_graph' starting at 'root_id' where 'id_to_slices' indicates what is visible in the graph.
memory_graph/memory_to_nodes.py:192
↓ 1 callers
Function
build_graph_depth_first
Recursively builds the graph starting at 'node_id' and adds it to 'graphviz_graph'.
memory_graph/memory_to_nodes.py:230
↓ 1 callers
Function
build_nested_list
(depth = 15)
memory_graph/test_max_graph_depth.py:7
↓ 1 callers
Function
build_trie
(words)
src/build_trie.py:9
↓ 1 callers
Function
calculate_total
(price, quantity, rounding=False)
src/decorator.py:10
↓ 1 callers
Function
caret_line_length
Adds whitespace to caret line in 's' so it is as long as the previois line.
memory_graph/utils.py:83
↓ 1 callers
Function
cocktail_shaker_sort
(data)
src/cocktail_sort.py:12
↓ 1 callers
Function
cocktail_shaker_sort
(values, begin, end)
src/quick_sort_fast.py:16
↓ 1 callers
Method
contains
(self, value)
src/hash_set.py:16
↓ 1 callers
Function
counting_sort
Sorts `data` to the digit at position `digit` using stable Counting Sort. The sorted data is writen to `data_new`.
src/radix_sort_bitwise.py:6
↓ 1 callers
Function
counting_sort
Sorts `data` to the digit at position `digit` using stable Counting Sort. The sorted data is writen to `data_new`.
src/radix_sort.py:4
↓ 1 callers
Function
create_depth_of_nodes
Creates a dictionary that maps each depth to the nodes at that depth.
memory_graph/memory_to_nodes.py:197
↓ 1 callers
Function
create_exception_graph
(drop_exceptions=None, highlight_exceptions=None)
images/exception_tree.py:46
↓ 1 callers
Function
create_graph
(names, nr_edges)
src/graph_to_nodes.py:5
↓ 1 callers
Function
create_graph
(names, nr_edges)
src/depth_first.py:4
↓ 1 callers
Function
create_graph
(names, nr_edges)
src/breadth_first.py:4
↓ 1 callers
Function
create_graph
Creates and returns a memory graph from 'data'.
memory_graph/__init__.py:67
↓ 1 callers
Function
custom_copy
(a)
src/marimo_example.py:13
↓ 1 callers
Method
custom_copy
Copies 'digits' but shares 'letters'.
src/custom_copy.py:9
↓ 1 callers
Method
custom_copy
Copies 'digits' but shares 'letters'.
images/copy_method.py:14
↓ 1 callers
Function
data_to_node
Returns the Node for 'data' based on it's id or type.
memory_graph/memory_to_nodes.py:23
↓ 1 callers
Method
decide
(self, data_point, operators)
src/decision_tree.py:11
↓ 1 callers
Function
default_to_string
Convert data to string.
memory_graph/config_helpers.py:44
↓ 1 callers
Function
depth_first
(graph, begin, end)
src/depth_first.py:12
↓ 1 callers
Function
depth_first_recursive
'path' is mutable to minimize copying
src/depth_first.py:14
↓ 1 callers
Function
depth_first_search
(node, prefix)
src/build_trie.py:21
↓ 1 callers
Function
embed_keys_in_key_value_nodes
Embed keys in Node_Key_Value nodes, so that the keys are not shown as separate nodes.
memory_graph/memory_to_nodes.py:167
↓ 1 callers
Method
empty_slices
(self)
memory_graph/sequence.py:21
↓ 1 callers
Function
exception_to_string
Helper function to convert the traceback of an exception to a string.
memory_graph/utils.py:55
↓ 1 callers
Function
factorial
(n)
src/factorial.py:2
↓ 1 callers
Function
factorial
(n)
images/factorial.py:7
↓ 1 callers
Method
fill_html_table
Fill the HTML_Table object with each child of the node.
memory_graph/node_base.py:126
↓ 1 callers
Method
fill_html_table_horizontal
Helper function to fill the html_table with the children of the Node_Base in horizontal orientation.
memory_graph/node_key_value.py:98
↓ 1 callers
Method
fill_html_table_horizontal
Helper function to fill the html_table with the children of the Node_Base in horizontal orientation.
memory_graph/node_linear.py:74
↓ 1 callers
Method
fill_html_table_vertical
Helper function to fill the html_table with the children of the Node_Base in vertical orientation.
memory_graph/node_key_value.py:81
↓ 1 callers
Method
fill_html_table_vertical
Helper function to fill the html_table with the children of the Node_Base in vertical orientation.
memory_graph/node_linear.py:57
↓ 1 callers
Method
find_empty_position
Searched and returns the (row, col) of the empty space (EMPTY_TILE).
src/sliding_puzzle.py:88
↓ 1 callers
Function
find_kmer_positions
(dna, k)
src/dna.py:2
↓ 1 callers
Function
format_group_label
(leaves, highlight_exceptions)
images/exception_tree.py:18
↓ 1 callers
Function
format_string
Helper function to format 'value' to be shown in the graph. We escape html characters and convert newlines to <BR/> tags.
memory_graph/html_table.py:14
↓ 1 callers
Function
fun
()
src/lazy_express.py:5
↓ 1 callers
Function
fun
()
src/eager_compri.py:5
↓ 1 callers
Function
fun
()
src/eager_return.py:5
↓ 1 callers
Function
fun1
()
src/exceptions.py:14
↓ 1 callers
Function
fun1
()
images/exception_example.py:11
↓ 1 callers
Function
fun2
()
src/exceptions.py:1
↓ 1 callers
Function
fun2
()
images/exception_example.py:8
↓ 1 callers
Function
fun3
()
images/exception_example.py:3
↓ 1 callers
Method
generate
(self)
memory_graph/slices_iterator.py:27
↓ 1 callers
Method
generate
(self)
memory_graph/slices_iterator.py:45
↓ 1 callers
Method
generate
(self)
memory_graph/slices_table_iterator.py:27
↓ 1 callers
Method
generate
(self)
memory_graph/slices_table_iterator.py:50
↓ 1 callers
Method
get_edges
(self)
src/graph_to_nodes.py:25
↓ 1 callers
Method
get_edges
Get the edges that need to be added to connect the table to other tables in the graph.
memory_graph/html_table.py:123
↓ 1 callers
Method
get_empty_position
Return the (row, col) of the empty space (EMPTY_TILE).
src/sliding_puzzle.py:95
↓ 1 callers
Function
get_frequency_counts
Returns a dict value->counts of 'values'.
src/frequency_count.py:3
↓ 1 callers
Function
get_function_name
(frameInfo)
memory_graph/__init__.py:183
↓ 1 callers
Method
get_html_table
Return the HTML_Table object that determines how the node is visualized in the graph.
memory_graph/node_base.py:97
↓ 1 callers
Method
get_label
Return a label for the node to be shown in the graph next to the HTML table.
memory_graph/node_base.py:132
↓ 1 callers
Method
get_last
(self)
images/introspect_depth.py:12
↓ 1 callers
Method
get_max_column
Get the maximum value of the number of columns of rows in the table.
memory_graph/html_table.py:115
↓ 1 callers
Function
get_max_type_depth
(node_id, node)
memory_graph/memory_to_nodes.py:66
↓ 1 callers
Method
get_mid
(self)
src/bin_search.py:14
↓ 1 callers
Method
get_mid
(self)
images/bin_search.py:15
↓ 1 callers
Function
get_random_data
Generates a list of `n` random integers with `bit_blocks` x `NR_BITS` bits.
src/radix_sort_bitwise.py:28
↓ 1 callers
Function
get_random_data
Generates a list of `n` random integers in range [rand_min,rand_max).
src/bucket_sort.py:33
↓ 1 callers
Function
get_random_data
Generates a list of `n` random integers with `nr_digits` digits.
src/radix_sort.py:27
↓ 1 callers
Method
get_slicer
(self)
memory_graph/node_base.py:107
↓ 1 callers
Function
get_solution_path
Reconstruct the path from the initial board to the solution.
src/sliding_puzzle.py:54
↓ 1 callers
Method
get_sorted_data
(self)
src/bucket_sort.py:20
↓ 1 callers
Function
get_source_location
Helper function to get the source location of the stack with 'stack_index' of the call stack.
memory_graph/__init__.py:40
↓ 1 callers
Function
get_subsets
(subsets, data, i, subset)
src/power_set.py:2
↓ 1 callers
Function
get_subsets
(subsets, data, i, subset)
images/power_set.py:7
↓ 1 callers
Function
graph_to_nodes
(graph)
src/graph_to_nodes.py:38
↓ 1 callers
Method
has_index
(self, index)
memory_graph/slices.py:70
↓ 1 callers
Method
has_references
Return if the node has references to other nodes.
memory_graph/node_key_value.py:26
↓ 1 callers
Method
has_references
Return if the node has references to other nodes.
memory_graph/node_linear.py:25
↓ 1 callers
Method
insert_recursive
(self, node, value)
memory_graph/test.py:190
↓ 1 callers
Function
insertion_sort
(data)
src/insertion_sort.py:12
↓ 1 callers
Function
is_property
(data_id, data_types, node_type, types_set)
memory_graph/config_helpers.py:28
↓ 1 callers
Method
is_root
Return if the node is the root node.
memory_graph/node_base.py:39
↓ 1 callers
Method
is_vertical
Return if the node is vertical or horizontal based on the orientation of the children.
memory_graph/node_key_value.py:45
↓ 1 callers
Method
is_vertical
Return if the node is vertical or horizontal based on the orientation of the children.
memory_graph/node_linear.py:37
↓ 1 callers
Method
learn
Build a decision tree from training data. Args: data: List of data points where each point is [class_label, feature1, fea
src/decision_tree.py:19
↓ 1 callers
Function
limit_string
Limit the length of a string s to the 'max_string_length' in the config.
memory_graph/utils.py:29
↓ 1 callers
Function
main
()
src/sliding_puzzle.py:9
↓ 1 callers
Function
main
()
src/exception_example.py:17
↓ 1 callers
Function
make_change
Returns a dict coin->count to make 'amount'.
src/make_change.py:3
↓ 1 callers
Function
memory_to_nodes_recursive
Recursively reads through each reference found in 'data', creates a node for it and adds, and adds it to 'nodes'.
memory_graph/memory_to_nodes.py:35
← previous
next →
101–200 of 477, ranked by callers