code: def test_junction_tree_directed_unconnected_edges():
      B = nx.DiGraph()
      B.add_edges_from([("A", "B"), ("C", "D"), ("E", "F")])
      G = junction_tree(B)
  
      J = nx.Graph()
      J.add_nodes_from([("A", "B"), ("C", "D"), ("E", "F")])
  
      assert nx.is_isomorphic(G, J)
  
imports: import networkx
  from networkx.algorithms.tree.decomposition import junction_tree
label_desc: Use image node_id 4 for calling a global function with example usage: test_junction_tree_directed_unconnected_edges() without return types