class_docstr: Convert a graph into paths suitable for datashading.
  
  Base class that connects each edge using a single line segment.
  Subclasses can add more complex algorithms for connecting with
  curved or manhattan-style polylines.
class_docstr_tok: ["Convert","a","graph","into","paths","suitable","for","datashading",".","Base","class","that","connects","each","edge","using","a","single","line","segment",".","Subclasses","can","add","more","complex","algorithms","for","connecting","with","curved","or","manhattan-style","polylines","."]
docstr: Convert a graph data structure into a path structure for plotting
  
  Given a set of nodes (as a dataframe with a unique ID for each
  node) and a set of edges (as a dataframe with with columns for the
  source and destination IDs for each edge), returns a dataframe
  with with one path for each edge suitable for use with
  Datashader. The returned dataframe has columns for x and y
  location, with paths represented as successive points separated by
  a point with NaN as the x or y value.
docstr_tok: ["Convert","a","graph","data","structure","into","a","path","structure","for","plotting","Given","a","set","of","nodes","(","as","a","dataframe","with","a","unique","ID","for","each","node",")","and","a","set","of","edges","(","as","a","dataframe","with","with","columns","for","the","source","and","destination","IDs","for","each","edge",")",",","returns","a","dataframe","with","with","one","path","for","each","edge","suitable","for","use","with","Datashader",".","The","returned","dataframe","has","columns","for","x","and","y","location",",","with","paths","represented","as","successive","points","separated","by","a","point","with","NaN","as","the","x","or","y","value","."]
code: def __call__(self, nodes, edges, **params):
      """
      Convert a graph data structure into a path structure for plotting
  
      Given a set of nodes (as a dataframe with a unique ID for each
      node) and a set of edges (as a dataframe with with columns for the
      source and destination IDs for each edge), returns a dataframe
      with with one path for each edge suitable for use with
      Datashader. The returned dataframe has columns for x and y
      location, with paths represented as successive points separated by
      a point with NaN as the x or y value.
      """
      p = param.ParamOverrides(self, params)
      edges, segment_class = _convert_graph_to_edge_segments(
          nodes, edges, p
      )
      return _convert_edge_segments_to_dataframe(
          edges, segment_class, p
      )
  
imports: from __future__ import annotations
  from math import ceil
  from dask import compute, delayed
  from pandas import DataFrame
  import numpy
  import pandas
  import param
  from .utils import ngjit
label_desc: Use image node_id 1 for calling the connect_edges obj's underlying member method code with example usage: obj.__call__(nodes, edges) and returns: _convert_edge_segments_to_dataframe