ForceDiagram.edges_where_dual

ForceDiagram.edges_where_dual(conditions, data=False)[source]

Get edges for which a certain condition or set of conditions is true for the corresponding edges in the diagram’s dual.

Parameters
  • conditions (dict) – A set of conditions in the form of key-value pairs. The keys should be attribute names. The values can be attribute values or ranges of attribute values in the form of min/max pairs.

  • data (bool, optional) – Yield the edges and their data attributes. Default is False.

Yields

2-tuple – The next edge as a (u, v) tuple, if data=False. The next edge as a ((u, v), data) tuple, if data=True.

Examples

>>>