Visualisation

src.model.visualisation.create_tree.add_nodes_edges(graph, data, parent=None, skip_frequency_vector=False)

Add nodes and edges to the graph recursively.

Parameters:
  • graph

  • data

  • parent

  • skip_frequency_vector

Returns:

src.model.visualisation.create_tree.add_title_description(html_file_path, title, description)

Add a title and description to the right of the graph in the HTML file.

Parameters:
  • html_file_path

  • title

  • description

Returns:

src.model.visualisation.create_tree.create_tree(data, file_name_export, type='community', skip_frequency_vector=True)

Create a tree network visualization from the data and save it to an HTML file.

Parameters:
  • data – The data to visualize as a tree.

  • file_name_export – The name of the HTML file to save the visualization to.

  • type – The type of visualization to create. Can be “community”, “degree”, or “distance”.

  • skip_frequency_vector – Whether to skip the frequency vector nodes in the visualization.

Returns:

None