ion id="section-intro">
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">import networkx as nx
def empty_cause(names, data):
    return []


def calculate_with_pc(names, data,timestamps):
    &#34;&#34;&#34;
    Peter-Clark (PC) algorithm for causal discovery from gcastle package.

    **Parameters**:

    **names**: The names of the different time series in data.

    **data**: Multivariate (2D) array containing different time series, each column repre