KPMG Clara can represent relationships between business concepts as a directed knowledge graph. Given an adjacency-list graph, a starting concept, and a target concept, return the shortest path from the start to the target using breadth-first search.
Implement bfs_knowledge_path(graph, start, target).
graph is a dictionary where each key is a string node and its value is a list of directly connected string nodes.start and target are strings. They may refer to nodes that have no outgoing-edge entry.start and target.[] when the target is unreachable.start == target, return [start].Each node should be visited at most once, even when the graph contains cycles.
def bfs_knowledge_path(graph, start, target):