<jupyter_start><jupyter_text>Retrieve the networkx graph from the query<jupyter_code>g = fc.fc.sub_G<jupyter_output><empty_output><jupyter_text>Retrieve all nodes<jupyter_code>g.nodes()<jupyter_output><empty_output><jupyter_text>Retrieve the start and end node<jupyter_code>[item for item in g.nodes() if g.nodes[item]['level'] == 1]
g.nodes["chronic myelogenous leukemia, BCR-ABL1 positive"]
g.nodes["FLT3"]
g.nodes["imatinib"]<jupyter_output><empty_output><jupyter_text>Retrieve all simple paths between the start and end node<jupyter_code>import networkx as nx
for path in nx.all_simple_paths(g, source="chronic myelogenous leukemia, BCR-ABL1 positive", target="imatinib"):
    print(path)<jupyter_output>['chronic myelogenous leukemia, BCR-ABL1 positive', 'GLI3', 'imatinib']
['chronic myelogenous leukemia, BCR-ABL1 positive', 'CDKN2B', 'imatinib']
['chronic myelogenous leukemia, BCR-ABL1 positive', 'C1708843', 'imatinib']
['chronic myelogenous leukemia, BCR-ABL1 positive', 'C1708843', 'imatinib']
['chronic myelogenous leukemia, BCR-ABL1 positive', 'C1708843', 'imatinib']
['chronic myelogenous leukemia, BCR-ABL1 positive', 'C1708843', 'imatinib']
['chronic myelogenous leukemia, BCR-ABL1 positive', 'C1708843', 'imatinib']
['chronic myelogenous leukemia, BCR-ABL1 positive', 'C1708843', 'imatinib']
['chronic myelogenous leukemia, BCR-ABL1 positive', 'C1708843', 'imatinib']
['chronic myelogenous leukemia, BCR-ABL1 positive', 'C1708843', 'imatinib']
['chronic myelogenous leukemia, BCR-ABL1 positive', 'C1708843', 'imatinib']
['chronic myelogenous leukemia, BCR-ABL1 positive', 'C1708843', 'imatinib']
['chronic myelogenous leukemia, BCR-ABL1 positive', 'C1708843', 'imatinib']
['chronic myelogen[...]
{'fraction_non_alphanumeric': 0.14477524810274373, 'fraction_numerical': 0.05604203152364273, 'mean_word_length': 8.68361581920904, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '82546', 'license': 'Apache-2.0', 'n_tokens_mistral': 745, 'n_tokens_neox': 605, 'n_words': 144, 'path': 'jupyter notebooks/Manipulate Graph Object from FindConnection Query.ipynb', 'repo_name': 'Carolina1396/biothings_explorer', 'size': '1713'}