def find_linked_nodes_routes(self, node):
        """Identifies routes connected to the selected node."""
        nodes = []
        routes = []
        for r in ROUTES:
            # Our node is the starting node
            if r[0] == node:
                nodes.append(r[1])
                routes.append(r)
            # Our node is the ending node and it's a bidirectional route
            elif r[1] == node and r[2]:
                nodes.append(r[0])
                routes.append(r)

        return (nodes, routes)
Identifies routes connected to the selected node.
docs/qtile_docs/graph.py