pywhy_graphs.classes.timeseries.has_homologous_edges#
- pywhy_graphs.classes.timeseries.has_homologous_edges(G, u_of_edge: Tuple[Union[int, float, str, Any], int], v_of_edge: Tuple[Union[int, float, str, Any], int]) bool [source]#
Check whether the graph contains all homologous edges for (u, v).
- Parameters:
G : time-series graph
The time-series graph. If the graph is stationary, then it _must_ have all homologous edges.
u_of_edge : TsNode
From node.
v_of_edge : TsNode
To node.
- Returns:
has_edge : bool
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
.