plot_rag_separate_traces

alternate Same RAG geometry as plot_rag with separate colored node and edge traces and legend groups.

visualize.plot_rag_separate_traces(G, plot_with='maxima', **kwargs)

Plot region adjacency graph with separate traces for nodes and edges.

Args: G: NetworkX graph plot_with: Node attribute to use for coordinates (‘maxima’ or other) **kwargs: Additional arguments passed to traces node_kwargs: Dict of arguments for node trace edge_kwargs: Dict of arguments for edge trace