deepgraph.deepgraph.DeepGraph.filter_by_values_e

DeepGraph.filter_by_values_e(col, values)

Keep only edges in e with relations of type col in values.

Remove all edges from e with relation(s) of type col not in the list of relations given by values.

Parameters:
  • col (str or int) – A column name of e, indicating the type of relation used in the filtering.
  • values (object or array_like) – The value(s) indicating which edges to keep.
Returns:

e – update e

Return type:

pd.DataFrame