API Reference

API Reference

visualize_triplet_graph

def visualize_triplet_graph(
    df,
    edge_color="gray",
    node_color="lightblue", 
    node_text_color="black", 
    background_color="white", 
    figsize=(10, 8),
    title='',
    color_title='black'
)

Visualizes a triplet graph where each row in the dataframe represents a triplet relationship.

Parameters

  • df: DataFrame containing triplet relationships
  • edge_color: Color of the edges (default: "gray")
  • node_color: Color of the nodes (default: "lightblue")
  • node_text_color: Color of the node text (default: "black")
  • background_color: Background color of the plot (default: "white")
  • figsize: Figure size as (width, height) tuple (default: (10, 8))
  • title: Title of the plot (default: '')
  • color_title: Color of the title (default: 'black')

visualize_link_doublet_cluster

def visualize_link_doublet_cluster(df, background_color='white', title='')

Visualization of linkage clustering by adapted Louvain's method.

Parameters

  • df: DataFrame containing triplet relationships
  • background_color: Background color (default: "white")
  • title: Name of the chart (default: "")

visualize_link_doublet

background_color='white', title='', color_title='black'

def visualize_link_doublet(
    df,
    loop_color='red',
    edge_color='black',
    inter_edge_color='blue',
    background_color='white',
    title='',
    color_title='black',
    figsize=(12, 8),
    show_labels=True
)

Creates a doublet link visualization.

Parameters

  • df: DataFrame containing duplet relationships
  • loop_color: Hinge color (default: "red")
  • edge_color: Arrow color (default: "black")
  • inter_edge_color: Color of links between links color (default: "blue")
  • background_color: Background color (default: "white")
  • title: Name of the chart (default: "")
  • color_title: Color of the chart name (default: "black")
  • figsize: Fixed size of the plot (default: "(12, 8)")
  • show_labels: Should I represent the operation id? (default: "True")

visualize_doblet_graph

def visualize_doblet_graph(
    df,
    edge_color="gray",
    node_text_color="black", 
    background_color="white",
    figsize=(10, 8),
    curvature=0.3,
    seed=42,
    loop_radius=0.8,
    arrow_style="->,head_length=0.7,head_width=0.5",
    connection_style="arc3",
    node_text_visible=True
)

Visualizes duplet links between nodes.

Parameters

  • df: DataFrame containing duplet relationships
  • edge_color: Color of the edges (default: "gray")
  • node_text_color: Color of the node text (default: "black")
  • background_color: Background color of the plot (default: "white")
  • figsize: Figure size as (width, height) tuple (default: (10, 8))
  • curvature: Curvature of the edges (default: 0.3)
  • seed: Random seed for reproducibility (default: 42)
  • loop_radius: Radius for self-loops (default: 0.8)
  • arrow_style: Style of the arrows (default: "->,head_length=0.7,head_width=0.5")
  • connection_style: Style of the connections (default: "arc3")
  • node_text_visible: Whether to show node labels (default: True)