src.preprocessing.filter_redundant_edges

Filter redundant edges from the data.

Classes

FilterRedundantEdges()

Filter redundant edges from the data.

class src.preprocessing.filter_redundant_edges.FilterRedundantEdges[source]

Filter redundant edges from the data.

The data is expected to have an “adj_list” and “adj_weights” column that contains the adjacency list of the graph. It will return the data with the redundant edges filtered out.

custom_transform(data, **transform_args)[source]

Filter out redundant edges from the data.

Parameters:
  • data (DataFrame) – The data to filter the redundant edges from.

  • transform_args (Never) – [UNUSED] Additional keyword arguments.

Return type:

DataFrame

Returns:

The data with the redundant edges filtered out.