def plot()

in amazon_comprehend_events_tutorial/notebooks/events_graph.py [0:0]


def plot(result, node_types, filename="nx.html", thr=0.0):
    nodes, edges = get_nodes_and_edges(result, node_types, thr)
    G = build_network_graph(
        nodes, edges,
        drop_isolates=True
    )
    nt = Network(*IFRAME_DIMS, notebook=True, heading="")
    nt.from_nx(G)
    display(nt.show(filename))