docstr: specific edge attributes should be set correctly
docstr_tok: ["specific","edge","attributes","should","be","set","correctly"]
code: def test_edge_attributes(self):
      """specific edge attributes should be set correctly"""
  
      sm = StructureModel([("a", "b"), ("b", "c")])
      a_graph = plot_structure(sm)
  
      default_color = a_graph.get_node("a")["color"]
      test_color = "white"
  
      assert default_color != test_color
      assert all("color" in obj for obj in a_graph.edges)
  
      a_graph = plot_structure(
          sm, edge_attributes={("a", "b"): {"color": test_color}}
      )
      assert all(
          edge["color"] == default_edge_color
          for edge in a_graph.edges
          if edge["from"] != "a" and edge["to"] != "b"
      )
  
      assert all(
          edge["color"] == test_color
          for edge in a_graph.edges
          if edge["from"] == "a" and edge["to"] == "b"
      )
  
file_path: causalnex/tests/test_plotting.py
imports: from collections import namedtuple
  from causalnex.plots import EDGE_STYLE, GRAPH_STYLE, plot_structure
  from causalnex.structure import StructureModel
label_desc: Use image node_id 6 for calling the TestToPyvis obj's underlying member method code with example usage: obj.test_edge_attributes() without return types