pywhy_graphs.classes.timeseries.has_homologous_edges#

pywhy_graphs.classes.timeseries.has_homologous_edges(G, u_of_edge: Tuple[int | float | str | Any, int], v_of_edge: Tuple[int | float | str | Any, int]) bool[source]#

Check whether the graph contains all homologous edges for (u, v).

Parameters:
Gtime-series graph

The time-series graph. If the graph is stationary, then it _must_ have all homologous edges.

u_of_edgeTsNode

From node.

v_of_edgeTsNode

To node.

Returns:
has_edgebool

Whether or not the graph contains all homologous edges.

Notes

If the edge is from the max-lag to time point 0, then there are no homologous edges to check in the time-series graph. In this case, the function will return True.